mirror of
https://codeberg.org/ProgramSnail/tree-sitter-lang.git
synced 2026-01-02 03:48:35 +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
|
|
@ -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