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

zsh syntax issues with delimiter highlighting #822

Open
ev0rtex opened this issue Nov 8, 2022 · 0 comments
Open

zsh syntax issues with delimiter highlighting #822

ev0rtex opened this issue Nov 8, 2022 · 0 comments

Comments

@ev0rtex
Copy link

ev0rtex commented Nov 8, 2022

Does this bug happen when you install plugin without vim-polyglot?
No... this is an issue with the syntax additions here for the zsh syntax. Specifically I've narrowed it down to the delimiter customizations in syntax/zsh.vim#L16. Commenting that line out fixes the issue. I don't know much about how vim syntax highlighting works so I'm not sure what the right way to fix it would be.

Describe the bug:
In some of my zsh scripts I have code that uses arithmetic using the $(( ... )) substitution. Whenever I have this and include inner parentheses to group math expressions the rest of the file ends up getting highlighted as a string.

Screen Shot 2022-11-08 at 11 51 52 AM

To Reproduce:
The simplest case might be a .zsh file with something like this in it:

somevar="$(( 5 - (4 * 3) ))"
echo "everything after the above line is highlighted as a string"
@ev0rtex ev0rtex changed the title zsh syntax issues zsh syntax issues with delimiter highlighting Nov 8, 2022
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

No branches or pull requests

1 participant