-
Notifications
You must be signed in to change notification settings - Fork 145
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
regression: all import
statements are highlighted with red.
#204
Comments
same issue here, took me a while to realize it's typescript-vim causing this. |
the fix seems to be: |
The suggested fix changes this syntax to use But, as commit #169f78 says, syntax files that replace default syntax files usually use |
As an aside. Have you tried the default typescript syntax that is now distributed with vim/nvim? It might work as well or better? Also, if you are using neovim then you could use the treesitter syntax which is likely to be faster. I switched to treesitter highlighting some time ago. When this syntax was first created (back before typescript's 1.0 release) there were no other options but there are now. |
The issue doesn't occur on my Mac setup > vim --version
VIM - Vi IMproved 9.1 (2024 Jan 02, compiled Jan 23 2024 22:19:02)
macOS version - arm64 For my Alpine desktop however, it does! Also checked on ubuntu containers! Same issue @laoshaw Checkout these lines on " This is the same syntax that is in yats.vim, but:
12 " - flattened into one file
13 " - HiLink commands changed to "hi def link" |
I bisected this down to this commit: 169f678
Repro:
This is what it looks like on master:
This is what it looks like with 31ede5a:
The text was updated successfully, but these errors were encountered: