fix binary operators
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
16952
src/parser.c
16952
src/parser.c
File diff suppressed because it is too large
Load Diff
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user