diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2021-10-31 20:42:37 -0400 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2021-10-31 20:42:37 -0400 |
commit | eb05a05ac4f10672c573dd53cb3aaa27deb4f6a3 (patch) | |
tree | 64eac6e24ee8540cb4a86cf4263b595744b6dce9 /src/tparse/tree-preproc.go | |
parent | c0a3940eb07abf13123c7190a5fa8a613bba9db0 (diff) |
[AST] Handle control flow blocks
+ Initial support for control flow blocks. Things will be fixed as I find bugs.
Diffstat (limited to 'src/tparse/tree-preproc.go')
-rw-r--r-- | src/tparse/tree-preproc.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tparse/tree-preproc.go b/src/tparse/tree-preproc.go index a3e65f5..8fec30c 100644 --- a/src/tparse/tree-preproc.go +++ b/src/tparse/tree-preproc.go @@ -25,7 +25,7 @@ func parsePreBlock (tokens *[]Token, tok, max int) (Node, int) { for ; tok < max; tok++ { t := (*tokens)[tok] - if t.Data == ":/" { + if t.Data == ":/" || t.Data == ":;" { break } |