fix @rust functions

This commit is contained in:
Daniella / Tove 2023-08-04 22:18:25 +02:00
parent adb5507a50
commit e88e10b68e
Signed by: TudbuT
GPG key ID: 7D63D5634B7C417F

View file

@ -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)), '|'),