summaryrefslogtreecommitdiff
path: root/src/tparse
diff options
context:
space:
mode:
Diffstat (limited to 'src/tparse')
-rw-r--r--src/tparse/tree-statement.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tparse/tree-statement.go b/src/tparse/tree-statement.go
index 9a4a515..1c648d2 100644
--- a/src/tparse/tree-statement.go
+++ b/src/tparse/tree-statement.go
@@ -108,7 +108,7 @@ func parseStatement(tokens *[]Token, tok, max int) (Node, int) {
out.Sub = append(out.Sub, tmp)
} else {
// do check for definition
- if isTypeThenValue {
+ if isTypeThenValue(tokens, tok, max) {
// if not, parse a value
tmp, tok = parseDef(tokens, tok, max)
} else {