commit dcbf011ec9014746cbe1e940c1201e5bcee83f70
parent bc74a47db98570d4706d704ceb6eec8ee1a84edc
Author: Drew DeVault <sir@cmpwn.com>
Date: Fri, 12 Feb 2021 10:17:22 -0500
parse: fix match (x) { int => return, }
return expected to only be used in a context where it would end in a
semicolon.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/parse.c b/src/parse.c
@@ -2150,6 +2150,7 @@ parse_control_statement(struct lexer *lexer)
struct token tok;
switch (lex(lexer, &tok)) {
case T_SEMICOLON:
+ case T_COMMA:
unlex(lexer, &tok);
break;
default: