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

(cpp) Switch statement is not highlighted correctly (regression between 10.6.0 and 10.7.0) #3311

Closed
deniskovalchuk opened this issue Aug 19, 2021 · 0 comments · Fixed by #3312
Labels
bug help welcome Could use help from community language

Comments

@deniskovalchuk
Copy link
Contributor

Describe the issue

Starting from hljs 10.7.0, switch statement is highlighted differently from other statements (if, while, for).

Which language seems to have the issue?

C++

Are you using highlight or highlightAuto?

highlightAll

Sample Code to Reproduce

Version 11.2.0:
https://jsfiddle.net/exypdun8/

Version 10.7.0:
https://jsfiddle.net/skwoep65/

Version 10.6.0:
https://jsfiddle.net/2hLpg9b6/

Expected behavior

expected

Actual behavior

actual

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug help welcome Could use help from community language
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant