summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2021-10-29 20:23:34 -0400
committerKyle Gunger <kgunger12@gmail.com>2021-10-29 20:23:34 -0400
commit2997d5a26365437a0f3b02daceabd60d73ead257 (patch)
tree14c173068ac64a406178734aeaf5b124655dc10c /src
parentad506ec1d0f465f55e66a220cb7a04164a348212 (diff)
[HOTFIX] Actually call a function
I am dumb, so dumb in fact that I apparently someteimes forget to actually *call* my own code.
Diffstat (limited to 'src')
-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 {