Skip to content

Commit ef17c4f

Browse files
authored
Fix block definition to allow optional statement
1 parent 872ef74 commit ef17c4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syncode/parsers/grammars/go.lark

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ var_decl: "var" nls? (var_spec | "(" nls? ((var_spec eos)* var_spec eos?)? ")")
7272

7373
var_spec: (identifier_list | NAME) (type_ ("=" nls? expression_list)? | "=" nls? expression_list)
7474

75-
block: "{" nls? ((statement? eos)* statement eos?)? "}"
75+
block: "{" nls? ((statement? eos)* statement? eos?)? "}"
7676

7777
// statement_list: (statement? eos)* statement
7878

0 commit comments

Comments
 (0)