Skip to content
New issue

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

TypeScript: catch wrong keywords #801

Closed
Bisstocuz opened this issue Jul 13, 2023 · 0 comments · Fixed by #952
Closed

TypeScript: catch wrong keywords #801

Bisstocuz opened this issue Jul 13, 2023 · 0 comments · Fixed by #952

Comments

@Bisstocuz
Copy link

Bisstocuz commented Jul 13, 2023

Describe the bug

Some keywords in variable names like module or var will be highlight improperly. (go-gitea/gitea#25848)

To Reproduce

image

Gusted added a commit to Gusted/chroma that referenced this issue Apr 2, 2024
- Allow comments to be inside of tags.
- Fixes the lexing of `<!--` comments.
- Allow tag names to include `-`.
- Modify module rule to be more strict which is to match `declare module
"Module name"`.
- Added tests.
- Resolves alecthomas#940
- Resolves alecthomas#939
- Resolves alecthomas#801
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant