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