From 60aa5b25b6b80ee613c9034f305a62dc7d2ebc3b Mon Sep 17 00:00:00 2001 From: mhoffm Date: Fri, 18 Jun 2021 00:01:58 +0200 Subject: [PATCH] fix scanner state handling --- src/scanner.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/scanner.c b/src/scanner.c index 9d6d505..fffa77d 100644 --- a/src/scanner.c +++ b/src/scanner.c @@ -65,7 +65,9 @@ void scanner_enter_interpolation_context(Scanner *scanner) { void scanner_exit_interpolation_context(Scanner *scanner) { scanner->template_interpolation_depth--; scanner->in_template_interpolation = false; - scanner->in_quoted_context = true; + if (scanner->quoted_context_depth > 0) { + scanner->in_quoted_context = true; + } } void scanner_enter_quoted_context(Scanner *scanner) {