-
-
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
Minor syntax highlighting issue with swayconfig files #14826
Comments
Should have been labelled as bug, and not enhancement. Anyway, @JosefLitos @jamespeapen (ping). |
I can replicate this. It looks like -syn match i3ConfigKeyword /^floating_modifier [$a-zA-Z0-9+]\+ \(normal\|inverse\)$/ contains=i3ConfigVariable,i3ConfigBindModkey,swayConfigFloatingModifierOpts
+syn match i3ConfigKeyword /floating_modifier [$a-zA-Z0-9+]\+ \(normal\|inverse\)$/ contained contains=i3ConfigVariable,i3ConfigBindModkey,swayConfigFloatingModifierOpts Removing this fixes this problem. However, on checking the docs, it looks like |
@jamespeapen Thanks a lot again for your amazing work! |
…ifier none; revert broken highlighting - fix floating_modifier $mod normal|inverse was being hightlighted as error reverting the floating_modifier change from dd83b63 - will currently allow invalid syntax after floating_modifier fixes: vim/vim#14826 closes: vim/vim#14827 vim/vim@22ac941 Co-authored-by: James Eapen <james.eapen@vai.org> Co-authored-by: JosefLitos <litosjos@fit.cvut.cz>
…ifier none; revert broken highlighting - fix floating_modifier $mod normal|inverse was being hightlighted as error reverting the floating_modifier change from dd83b63 - will currently allow invalid syntax after floating_modifier fixes: vim/vim#14826 closes: vim/vim#14827 vim/vim@22ac941 Co-authored-by: James Eapen <james.eapen@vai.org> Co-authored-by: JosefLitos <litosjos@fit.cvut.cz>
…ifier none; revert broken highlighting - fix floating_modifier $mod normal|inverse was being hightlighted as error reverting the floating_modifier change from dd83b63 - will currently allow invalid syntax after floating_modifier fixes: vim/vim#14826 closes: vim/vim#14827 vim/vim@22ac941 Co-authored-by: James Eapen <james.eapen@vai.org> Co-authored-by: JosefLitos <litosjos@fit.cvut.cz>
Steps to reproduce
This is a continuation of #14752, syntax highlighting improved a lot but there is still a minor issue with the following config:
The "normal" string shows up as red.
Here's a screenshot of what it currently looks like:
Expected behaviour
Syntax highlighting is properly applied to all commands.
Version of Vim
9.1.429
Environment
Operating system: Arch Linux
Terminal: foot
Value of $TERM: foot
Shell: /usr/bin/bash
Logs and stack traces
No response
The text was updated successfully, but these errors were encountered: