hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit df706ec2544654b79e8a88f146d054207307ce2b
parent 4ee6c10872cd9f806de6d9a936e7944552802a49
Author: Sebastian <sebastian@sebsite.pw>
Date:   Thu, 14 Sep 2023 00:06:05 -0400

hare::parse: disallow comma after ... in array literal

Signed-off-by: Sebastian <sebastian@sebsite.pw>

Diffstat:
Mhare/parse/expr.ha | 1-
1 file changed, 0 insertions(+), 1 deletion(-)

diff --git a/hare/parse/expr.ha b/hare/parse/expr.ha @@ -886,7 +886,6 @@ fn plain_array(lexer: *lex::lexer) (ast::expr | error) = { switch (tok.0) { case ltok::ELLIPSIS => expand = true; - try(lexer, ltok::COMMA)?; want(lexer, ltok::RBRACKET)?; break; case ltok::COMMA => void;