Make syntax highlighting for @ and # nicer (#6550)

This commit is contained in:
Simon Lydell 2017-10-25 09:10:32 +02:00 committed by Justin Ridgewell
parent eb19ea18cc
commit d2b3138bdd

View File

@ -82,6 +82,13 @@ function getTokenType(match) {
return "bracket";
}
if (
token.type === "invalid" &&
(token.value === "@" || token.value === "#")
) {
return "punctuator";
}
return token.type;
}