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

fix(c/cpp) comments after #include <> blocks #3041

Merged
merged 5 commits into from Mar 7, 2021

Conversation

joshgoebel
Copy link
Member

@joshgoebel joshgoebel commented Mar 3, 2021

Resolves #3040.

Changes

Fixes the fact that the string matching mode inside pre-processor
directives such as #include would not terminate until line end -
preventing it from matching comments or other things that might occur
before the end of the line.

Checklist

  • Added markup tests, or they don't apply here because...
  • Updated the changelog at CHANGES.md

@joshgoebel joshgoebel merged commit db29567 into highlightjs:master Mar 7, 2021
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

Successfully merging this pull request may close these issues.

C comments different colors depending on where they are placed on StackOverflow
2 participants