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 8772 additions and 8265 deletions

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);
}