fix @rust functions
This commit is contained in:
parent
adb5507a50
commit
e88e10b68e
1 changed files with 1 additions and 2 deletions
|
@ -29,8 +29,7 @@ module.exports = grammar({
|
|||
function_definition: $ => choice($.func, $.block),
|
||||
func: $ => seq(
|
||||
'func', $._spacing,
|
||||
$.identifier, optional($._spacing, $.identifier), $._spacing,
|
||||
$.block,
|
||||
$.identifier, $._spacing, choice(seq('@', $.identifier, $.block), $.block),
|
||||
),
|
||||
block: $ => seq(
|
||||
optional('!'), '{', optional($._spacing, repeat(seq(/[^ \n\r\t|]+/, $._spacing)), '|'),
|
||||
|
|
Loading…
Add table
Reference in a new issue