Make syntax highlighting for @ and # nicer (#6550)
This commit is contained in:
parent
eb19ea18cc
commit
d2b3138bdd
@ -82,6 +82,13 @@ function getTokenType(match) {
|
||||
return "bracket";
|
||||
}
|
||||
|
||||
if (
|
||||
token.type === "invalid" &&
|
||||
(token.value === "@" || token.value === "#")
|
||||
) {
|
||||
return "punctuator";
|
||||
}
|
||||
|
||||
return token.type;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user