fix @rust functions

This commit is contained in:
Daniella / Tove 2023-08-04 22:12:45 +02:00
parent d5f4319742
commit daf049ed8c
Signed by: TudbuT
GPG key ID: 7D63D5634B7C417F

View file

@ -29,11 +29,11 @@ module.exports = grammar({
function_definition: $ => choice($.func, $.block),
func: $ => seq(
'func', $._spacing,
$.identifier, $._spacing,
$.identifier, optional($._spacing, $.identifier), $._spacing,
$.block,
),
block: $ => seq(
'{', $._spacing, repeat(seq(/[^ \n\r\t|]+/, $._spacing)), '|',
'{', optional($._spacing, repeat(seq(/[^ \n\r\t|]+/, $._spacing)), '|'),
repeat($._statement),
'}',
),