summaryrefslogtreecommitdiff
path: root/src/tparse
diff options
context:
space:
mode:
Diffstat (limited to 'src/tparse')
-rw-r--r--src/tparse/tree-statement.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tparse/tree-statement.go b/src/tparse/tree-statement.go
index 25ddab6..b4f891b 100644
--- a/src/tparse/tree-statement.go
+++ b/src/tparse/tree-statement.go
@@ -40,7 +40,7 @@ func parseBlock(tokens *[]Token, tok, max int) (Node, int) {
if sparse {
tmp, tok = parseStatementList(tokens, tok + 1, max)
} else {
- tmp, tok = parseTypeList(tokens, tok + 1, max)
+ tmp, tok = parseType(tokens, tok + 1, max, false)
}
tmp.Data.Data = "[]"
def.Sub = append(def.Sub, tmp)
@@ -215,7 +215,7 @@ func keywordStatement(tokens *[]Token, tok, max int) (Node, int) {
out.Sub = append(out.Sub, tmp)
tok++
if (*tokens)[tok].Data == "[" {
- tmp, tok = parseTypeList(tokens, tok + 1, max)
+ tmp, tok = parseType(tokens, tok + 1, max, false)
out.Sub = append(out.Sub, tmp)
tok++
}