Skip to content

JSON: Kinda fixed comment issue#1853

Merged
RunDevelopment merged 1 commit into
PrismJS:masterfrom
RunDevelopment:json-comment-kinda-fix
Apr 23, 2019
Merged

JSON: Kinda fixed comment issue#1853
RunDevelopment merged 1 commit into
PrismJS:masterfrom
RunDevelopment:json-comment-kinda-fix

Conversation

@RunDevelopment

Copy link
Copy Markdown
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