chroma
chroma copied to clipboard
TypeScript lexer fails to highlight string literal generics
Is there an existing issue for this?
- [X] I have searched the existing issues
Describe the bug
In TypeScript, string constants are valid types. Here's an screenshot from the syntax highlighting in VSCode:
Contrast with the syntax highlighting in the most recent version of chroma:
Note that the syntax error with the comma was resolved in #1002.
To Reproduce
type T<U> = Complicated<U, "stuff">
// ^-----^
// not highlighted as a literal