We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
type T<U> = Complicated<U, "stuff"> // ^-----^ // not highlighted as a literal
playground link
The text was updated successfully, but these errors were encountered:
fix(typescript): highlight string literal type parameters
cf57deb
Fixes alecthomas#1009
Successfully merging a pull request may close this issue.
Is there an existing issue for this?
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
playground link
The text was updated successfully, but these errors were encountered: