From e1eeadf0d53ca3088d7e0e1dd5521878a11ebde7 Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Mon, 3 May 2021 15:00:59 -0400 Subject: tokenizer bug fix --- src/tparse/tree-statement.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/tparse/tree-statement.go') diff --git a/src/tparse/tree-statement.go b/src/tparse/tree-statement.go index 938e827..874528a 100644 --- a/src/tparse/tree-statement.go +++ b/src/tparse/tree-statement.go @@ -29,9 +29,11 @@ func parseBlock(tokens *[]Token, tok, max int) (Node, int) { switch t.Type { case DELIMIT: if t.Data == "(" { - - } else if t.Data == "(" { - + tmp, tok = parseParamList(tokens, tok, max) + out.Sub = append(out.Sub, tmp) + } else if t.Data == "[" { + tmp, tok = parseTypeList(tokens, tok, max) + out.Sub = append(out.Sub, tmp) } else { goto BREAK } -- cgit v1.2.3