fix binary operators

This commit is contained in:
mhoffm
2021-06-19 18:10:47 +02:00
parent 6cc5e7b721
commit d61fefced0
7 changed files with 8767 additions and 8260 deletions
+8 -14
View File
@@ -174,10 +174,6 @@
"type": "SYMBOL",
"name": "_expr_term"
},
{
"type": "SYMBOL",
"name": "operation"
},
{
"type": "SYMBOL",
"name": "conditional"
@@ -211,6 +207,10 @@
"type": "SYMBOL",
"name": "for_expr"
},
{
"type": "SYMBOL",
"name": "operation"
},
{
"type": "SEQ",
"members": [
@@ -947,18 +947,12 @@
]
},
"_function_call_start": {
"type": "TOKEN",
"content": {
"type": "STRING",
"value": "("
}
"type": "STRING",
"value": "("
},
"_function_call_end": {
"type": "TOKEN",
"content": {
"type": "STRING",
"value": ")"
}
"type": "STRING",
"value": ")"
},
"function_arguments": {
"type": "PREC_RIGHT",
+8
View File
@@ -69,6 +69,10 @@
"type": "literal_value",
"named": true
},
{
"type": "operation",
"named": true
},
{
"type": "splat",
"named": true
@@ -681,6 +685,10 @@
"type": "literal_value",
"named": true
},
{
"type": "operation",
"named": true
},
{
"type": "splat",
"named": true
+8707 -8235
View File
File diff suppressed because it is too large Load Diff
+1 -3
View File
@@ -218,9 +218,7 @@ bool scanner_scan(Scanner *scanner, TSLexer *lexer, const bool *valid_symbols) {
}
// handle all other quoted template or string literal characters
if (
valid_symbols[TEMPLATE_LITERAL_CHUNK]
) {
if (valid_symbols[TEMPLATE_LITERAL_CHUNK] && scanner->in_quoted_context) {
return accept_and_advance(lexer, TEMPLATE_LITERAL_CHUNK);
}