summaryrefslogtreecommitdiff
path: root/src/tparse/tree-value.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/tparse/tree-value.go')
-rw-r--r--src/tparse/tree-value.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tparse/tree-value.go b/src/tparse/tree-value.go
index edca103..554edcd 100644
--- a/src/tparse/tree-value.go
+++ b/src/tparse/tree-value.go
@@ -362,7 +362,16 @@ func parseType(tokens *[]Token, tok, max int, param bool) (Node, int) {
case DEFWORD:
if (*tokens)[tok+1].Data == "(" {
tmp, tok = parseTypeParams(tokens, tok, max)
+ } else if (*tokens)[tok+1].Data == "." {
+ tmp.Data = t
+ out.Sub = append(out.Sub, tmp)
+ tok++
+ continue
+ } else {
+ tmp.Data = t
+ tok++
}
+ out.Sub = append(out.Sub, tmp)
return out, tok