mirror of
https://codeberg.org/ProgramSnail/tree-sitter-lang.git
synced 2025-12-06 06:38:51 +00:00
array expression in function definition now can be used without semicolon
This commit is contained in:
parent
18d84f5f28
commit
9b86acea53
2 changed files with 2 additions and 2 deletions
|
|
@ -387,8 +387,8 @@ parse_number : Unit! = {
|
|||
(operator)
|
||||
(number_literal)))
|
||||
(simple_name_identifier)
|
||||
(annotation_identifier)
|
||||
(argument_name_identifier)
|
||||
(annotation_identifier)
|
||||
(type
|
||||
(simple_type_identifier))
|
||||
(type
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ module.exports = grammar({
|
|||
optional($._reference),
|
||||
$.type,
|
||||
)))),
|
||||
choice(seq('=', choice(prec(2, $.block), seq($._super_expression, ';'))), ';'),
|
||||
choice(seq('=', choice(prec(2, choice($.block, $.array)), seq($._super_expression, ';'))), ';'),
|
||||
),
|
||||
|
||||
typeclass_definition: $ => seq(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue