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)), ']'),
|
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),
|
||||||
|
|
|
@ -463,6 +463,14 @@
|
||||||
"type": "STRING",
|
"type": "STRING",
|
||||||
"value": "=>!"
|
"value": "=>!"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"type": "STRING",
|
||||||
|
"value": "=>?"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "STRING",
|
||||||
|
"value": "=>?!"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"type": "STRING",
|
"type": "STRING",
|
||||||
"value": "=>"
|
"value": "=>"
|
||||||
|
|
|
@ -678,6 +678,14 @@
|
||||||
"type": "=>!",
|
"type": "=>!",
|
||||||
"named": false
|
"named": false
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"type": "=>?",
|
||||||
|
"named": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "=>?!",
|
||||||
|
"named": false
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"type": ">",
|
"type": ">",
|
||||||
"named": false
|
"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