fix scanner state handling
This commit is contained in:
@@ -65,8 +65,10 @@ void scanner_enter_interpolation_context(Scanner *scanner) {
|
|||||||
void scanner_exit_interpolation_context(Scanner *scanner) {
|
void scanner_exit_interpolation_context(Scanner *scanner) {
|
||||||
scanner->template_interpolation_depth--;
|
scanner->template_interpolation_depth--;
|
||||||
scanner->in_template_interpolation = false;
|
scanner->in_template_interpolation = false;
|
||||||
|
if (scanner->quoted_context_depth > 0) {
|
||||||
scanner->in_quoted_context = true;
|
scanner->in_quoted_context = true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void scanner_enter_quoted_context(Scanner *scanner) {
|
void scanner_enter_quoted_context(Scanner *scanner) {
|
||||||
scanner->quoted_context_depth++;
|
scanner->quoted_context_depth++;
|
||||||
|
|||||||
Reference in New Issue
Block a user