matching now even less awkward
This commit is contained in:
parent
89844be795
commit
02baa62702
4 changed files with 523 additions and 407 deletions
|
@ -61,7 +61,7 @@ module.exports = grammar({
|
|||
';',
|
||||
),
|
||||
array: $ => seq('[', $._spacing, optional(repeat($._statement)), ']'),
|
||||
operation: $ => choice(/[+\-*\/%&]/, "=>!", "=>"),
|
||||
operation: $ => choice(/[+\-*\/%&]/, "=>!", "=>?", "=>?!", "=>"),
|
||||
variable: $ => choice(
|
||||
seq('def', $._spacing, $.identifier),
|
||||
seq('=', $.identifier),
|
||||
|
|
|
@ -463,6 +463,14 @@
|
|||
"type": "STRING",
|
||||
"value": "=>!"
|
||||
},
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "=>?"
|
||||
},
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "=>?!"
|
||||
},
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "=>"
|
||||
|
|
|
@ -678,6 +678,14 @@
|
|||
"type": "=>!",
|
||||
"named": false
|
||||
},
|
||||
{
|
||||
"type": "=>?",
|
||||
"named": false
|
||||
},
|
||||
{
|
||||
"type": "=>?!",
|
||||
"named": false
|
||||
},
|
||||
{
|
||||
"type": ">",
|
||||
"named": false
|
||||
|
|
912
src/parser.c
912
src/parser.c
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue