Change highlighting to match the compiler
This commit is contained in:
parent
7e4d11123e
commit
a3fdd94fe4
@ -169,6 +169,9 @@ function process_token_value_and_end(value: string, token_type: TokenType, first
|
|||||||
if (token_type === "MultilineComment") {
|
if (token_type === "MultilineComment") {
|
||||||
token_value = `/*${token_value}*/`;
|
token_value = `/*${token_value}*/`;
|
||||||
new_end += 4;
|
new_end += 4;
|
||||||
|
} else if (token_type === "String") {
|
||||||
|
token_value = `"${token_value}"`;
|
||||||
|
new_end += 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Escape html and return
|
// Escape html and return
|
||||||
|
Loading…
Reference in New Issue
Block a user