fix @rust functions

This commit is contained in:
Daniella / Tove 2023-08-04 22:31:03 +02:00
parent 18162ee5cb
commit 85fee81d74
Signed by: TudbuT
GPG key ID: 7D63D5634B7C417F
4 changed files with 386 additions and 367 deletions

View file

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

View file

@ -150,7 +150,7 @@
},
{
"type": "STRING",
"value": "{"
"value": "!{"
},
{
"type": "SYMBOL",

View file

@ -613,6 +613,10 @@
]
}
},
{
"type": "!{",
"named": false
},
{
"type": "\"",
"named": false

File diff suppressed because it is too large Load diff