mirror of
https://codeberg.org/ProgramSnail/tree-sitter-lang.git
synced 2025-12-30 10:28:18 +00:00
block moved to scoped_expression
This commit is contained in:
parent
7f53a21f20
commit
f525fce6d7
2 changed files with 8 additions and 7 deletions
|
|
@ -64,7 +64,7 @@ module.exports = grammar({
|
|||
optional(choice(choice('->', 'out'), choice('<-', 'in'), choice('<>', 'ref'))),
|
||||
$.type,
|
||||
)))),
|
||||
choice(seq('=', choice(seq($._super_expression, ';'), $.block)), ';'),
|
||||
choice(seq('=', choice(prec(2, $.block), seq($._super_expression, ';'))), ';'),
|
||||
),
|
||||
|
||||
typeclass_definition: $ => seq(
|
||||
|
|
@ -185,7 +185,6 @@ module.exports = grammar({
|
|||
|
||||
_expression: $ => choice(
|
||||
$.operator_expression,
|
||||
$.block,
|
||||
$.return,
|
||||
$.name_expression,
|
||||
$.constructor,
|
||||
|
|
@ -199,6 +198,7 @@ module.exports = grammar({
|
|||
),
|
||||
|
||||
_not_name_scoped_expression: $ => choice(
|
||||
$.block,
|
||||
$.array,
|
||||
$.placeholder,
|
||||
$.name_definition,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue