array expression in function definition now can be used without semicolon

This commit is contained in:
ProgramSnail 2023-07-25 12:28:44 +03:00
parent 18d84f5f28
commit 9b86acea53
2 changed files with 2 additions and 2 deletions

View file

@ -387,8 +387,8 @@ parse_number : Unit! = {
(operator) (operator)
(number_literal))) (number_literal)))
(simple_name_identifier) (simple_name_identifier)
(annotation_identifier)
(argument_name_identifier) (argument_name_identifier)
(annotation_identifier)
(type (type
(simple_type_identifier)) (simple_type_identifier))
(type (type

View file

@ -66,7 +66,7 @@ module.exports = grammar({
optional($._reference), optional($._reference),
$.type, $.type,
)))), )))),
choice(seq('=', choice(prec(2, $.block), seq($._super_expression, ';'))), ';'), choice(seq('=', choice(prec(2, choice($.block, $.array)), seq($._super_expression, ';'))), ';'),
), ),
typeclass_definition: $ => seq( typeclass_definition: $ => seq(