matching now even less awkward

This commit is contained in:
Daniella / Tove 2024-11-15 14:40:17 +01:00
parent 89844be795
commit 02baa62702
Signed by: TudbuT
GPG key ID: B3CF345217F202D3
4 changed files with 523 additions and 407 deletions

View file

@ -61,7 +61,7 @@ module.exports = grammar({
';', ';',
), ),
array: $ => seq('[', $._spacing, optional(repeat($._statement)), ']'), array: $ => seq('[', $._spacing, optional(repeat($._statement)), ']'),
operation: $ => choice(/[+\-*\/%&]/, "=>!", "=>"), operation: $ => choice(/[+\-*\/%&]/, "=>!", "=>?", "=>?!", "=>"),
variable: $ => choice( variable: $ => choice(
seq('def', $._spacing, $.identifier), seq('def', $._spacing, $.identifier),
seq('=', $.identifier), seq('=', $.identifier),

View file

@ -463,6 +463,14 @@
"type": "STRING", "type": "STRING",
"value": "=>!" "value": "=>!"
}, },
{
"type": "STRING",
"value": "=>?"
},
{
"type": "STRING",
"value": "=>?!"
},
{ {
"type": "STRING", "type": "STRING",
"value": "=>" "value": "=>"

View file

@ -678,6 +678,14 @@
"type": "=>!", "type": "=>!",
"named": false "named": false
}, },
{
"type": "=>?",
"named": false
},
{
"type": "=>?!",
"named": false
},
{ {
"type": ">", "type": ">",
"named": false "named": false

File diff suppressed because it is too large Load diff