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

JSON: Kinda fixed comment issue #1853

Merged

Conversation

RunDevelopment
Copy link
Member

This PR kinda fixes #1852.

The real cause seems to be #1492 but this minor change will fix this kind of problem caused by comments.

@RunDevelopment RunDevelopment changed the title JSON: Kinds fixed comment issue JSON: Kinda fixed comment issue Apr 1, 2019
@RunDevelopment RunDevelopment merged commit cbe05ec into PrismJS:master Apr 23, 2019
@RunDevelopment RunDevelopment deleted the json-comment-kinda-fix branch April 23, 2019 18:52
Mattchewone pushed a commit to Mattchewone/prism that referenced this pull request Apr 23, 2019
This is a partial workaround for the greedy matching bug so that pure JSON will always be matched correctly while JSON + comments might suffer from some issues.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

/* breaks JSON tokenization
2 participants