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

while loop in case block syntax highlighting is broken #94

Open
rrama opened this issue Jun 21, 2024 · 0 comments
Open

while loop in case block syntax highlighting is broken #94

rrama opened this issue Jun 21, 2024 · 0 comments

Comments

@rrama
Copy link

rrama commented Jun 21, 2024

The code with a problem is:

case "${char}" in
  '"')
    while [[ ( 0 -eq 1 ) ]] || ! something; do
      something_else
    done
    ;;
esac

It looks like:

Broken syntax highlighting
I am using the Dark Modern theme.
Observational note: In another similar example in my code, when I remove the redundant circular brackets the issue becomes less bad.

It should look like:

Correct when an if
As you can see, when we swap the while for an if it works as expected.

Tested with

v1.8.7

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