commit 4a9653a613d5a7c3991b9cfe97766d44909de31e
parent df706ec2544654b79e8a88f146d054207307ce2b
Author: Sebastian <sebastian@sebsite.pw>
Date: Thu, 14 Sep 2023 00:06:06 -0400
hare::parse: disallow comma after ... in struct literal
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
@@ -922,7 +922,6 @@ fn plain_struct(
synassert(lex::mkloc(lexer), len(alias) != 0,
"Cannot use auto-fill with anonymous struct")?;
autofill = true;
- try(lexer, ltok::COMMA)?;
want(lexer, ltok::RBRACE)?;
break;
case ltok::NAME, ltok::STRUCT =>