commit 0e42bcc4c1e787c5350dc4045adc8b2a36f8a934
parent 4a9653a613d5a7c3991b9cfe97766d44909de31e
Author: Sebastian <sebastian@sebsite.pw>
Date: Thu, 14 Sep 2023 00:06:07 -0400
hare::parse: disallow comma after ... in call expr
Signed-off-by: Sebastian <sebastian@sebsite.pw>
Diffstat:
1 file changed, 0 insertions(+), 1 deletion(-)
diff --git a/hare/parse/expr.ha b/hare/parse/expr.ha
@@ -487,7 +487,6 @@ fn call(lexer: *lex::lexer, lvalue: ast::expr) (ast::expr | error) = {
match (try(lexer, ltok::ELLIPSIS)?) {
case lex::token =>
variadic = true;
- try(lexer, ltok::COMMA)?;
want(lexer, ltok::RPAREN)?;
break;
case void => void;