From eb05a05ac4f10672c573dd53cb3aaa27deb4f6a3 Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Sun, 31 Oct 2021 20:42:37 -0400 Subject: [AST] Handle control flow blocks + Initial support for control flow blocks. Things will be fixed as I find bugs. --- src/tparse/tree-preproc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tparse/tree-preproc.go') 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 } -- cgit v1.2.3