-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
select breaks syntax highlighting in bash #14795
Comments
Hm, did you use |
yes normally i use bash, but for me this happens with sh as well btw this does not only affect select. same with while, until, for, etc |
Yeah, for the same reason, you are using reserved words which the syntax script tries to match against the expected syntax.
So does this help? |
You need to reload the file after |
Steps to reproduce
set filetype to sh or bash
use 'select' as a command argument without surrounding quotes
watch the syntax highlighting break
example:
i randomly discovered this because copyq has a select argument, that i use in a script
Expected behaviour
'select' should not break the syntax highlighting if its used as an argument for a command. the syntax recognition logic should only trigger if its at the very beginning of the line, after && semicolon etc
Version of Vim
9.1.0408-1
Environment
EndeavourOS
Alacritty
Logs and stack traces
No response
The text was updated successfully, but these errors were encountered: