summaryrefslogtreecommitdiff
path: root/src/tparse
diff options
context:
space:
mode:
Diffstat (limited to 'src/tparse')
-rw-r--r--src/tparse/tree-value.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tparse/tree-value.go b/src/tparse/tree-value.go
index 609e9d7..c44cdb6 100644
--- a/src/tparse/tree-value.go
+++ b/src/tparse/tree-value.go
@@ -410,8 +410,15 @@ func parseType(tokens *[]Token, tok, max int, param bool) (Node, int) {
tmp.Data = t
tok++
}
+
out.Sub = append(out.Sub, tmp)
+ if param && (*tokens)[tok].Data == "`" {
+ tmp = Node{(*tokens)[tok], []Node{}}
+ out.Sub = append(out.Sub, tmp)
+ tok++
+ }
+
return out, tok
case KEYWORD: