From a3fdd94fe4d8966f9c882db0a90495d1531705cb Mon Sep 17 00:00:00 2001 From: Araozu Date: Wed, 31 Jul 2024 15:25:49 -0500 Subject: [PATCH] Change highlighting to match the compiler --- src/lexer/highlighter.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lexer/highlighter.ts b/src/lexer/highlighter.ts index cbc56e6..14f1b7d 100644 --- a/src/lexer/highlighter.ts +++ b/src/lexer/highlighter.ts @@ -169,6 +169,9 @@ function process_token_value_and_end(value: string, token_type: TokenType, first if (token_type === "MultilineComment") { token_value = `/*${token_value}*/`; new_end += 4; + } else if (token_type === "String") { + token_value = `"${token_value}"`; + new_end += 2; } // Escape html and return