components/prism-json.js


Log

Author Commit Date CI Message
Michael Schmidt e2630d89 2021-09-26T11:52:18 ESLint: Added `regexp/sort-alternatives` rule (#3093)
Michael Schmidt cf28d1b2 2021-01-03T13:12:26 JSON: Fixed backtracking issue in Safari (#2691)
Michael Schmidt 158caf52 2020-07-30T22:54:34 JSON: Greedy comments (#2479) Comments are now greedy allowing them to break strings, properties, and each other.
Michael Schmidt 48fac3b2 2020-06-12T15:58:46 Added a test for identifier support across all languages (#2371)
Valtteri Laitinen 9782cfe6 2020-05-18T02:29:27 Markup & JSON: Added new aliases (#2390) This adds the `rss` and `atom` alias for Markup and the `webmanifest` alias for JSON.
Michael Schmidt c187e229 2019-10-16T12:06:22 Added test for unused capturing groups (#1996) This adds a test that checks for unused capturing groups in patterns and another test which ensures that lookbehind groups are always the first thing being matched in a pattern.
Michael Schmidt cbe05ec3 2019-04-23T20:52:47 JSON: Kinda fixed comment issue (#1853) 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.
Michael Schmidt b5041cf9 2019-02-26T05:41:01 Fix JSONP support (#1745) This PR fixes that JSON did not support [JSONP](https://en.wikipedia.org/wiki/JSONP) callback functions. I also added a JSON example page.
ExE Boss eee06649 2019-02-14T01:18:46 Added `keyword` alias to JSON's `null` (#1733) This adds the `keyword` alias to the `null` pattern in JSON.
Michael Schmidt da474c77 2018-10-26T02:20:21 Cleaned up JSON (#1596) This PR removes useless flags (because JS is case sensitive, so is JSON) and adds one to number to make the pattern more compact.
Marius Schulz 8720b3e6 2018-10-25T20:56:57 Adds support for comments in JSON (#1595) While JSON doesn't explicitly support comments, they're commonly used and there are supersets of JSON that do make comments available. PrismJS is not a linter, and this is a useful feature to include when displaying JSON.
Andrew Assarattanakul 74fe81c6 2018-07-21T14:10:18 Fix bugs in JSON language * Fix numbers to include negative numbers. * Remove hexidecimal from numbers it is not a valid value. * Remove ) and ; from punctuation they are not valid punctuation. * Include missing tests for punctuation and operators.
Golmote 12c0b20a 2018-03-08T22:19:01 Decouple minus sign from number pattern in most languages. Close #1110
Golmote 8fc1b031 2017-10-22T14:48:06 JSON: Regexp optimisation + don't use captures if not needed
Golmote 98acd2d7 2017-10-21T14:44:09 JSON: Make strings greedy, remove negative look-ahead for ":". Fix #1204
Golmote 0ca13530 2017-01-10T21:09:36 JSON: Fix property and string patterns performance. Fix #1080
Golmote 25a541d6 2016-09-28T21:16:33 JSON: Fixed issues with properties and strings + added tests. Fix #1025
CupOfTea696 ad2fcd01 2015-12-29T15:54:51 JSON Fixes
CupOfTea696 db367b0b 2015-05-27T16:26:58 JSON numbers in string fix
CupOfTea696 4519754a 2015-05-05T21:05:33 minified version
CupOfTea696 44d20101 2014-09-22T21:11:57 Alias fix
CupOfTea696 122d13e9 2014-09-22T20:42:39 Merging JSONP definition with JSON JSONP alias added to JSON.
CupOfTea696 ba9c2b61 2014-09-22T19:44:52 Added operator
CupOfTea696 754de781 2014-09-22T19:35:15 Punctuation improvements
CupOfTea696 ad11ed3f 2014-09-22T14:11:16 JSONP Language proper JSONP support.
CupOfTea696 c9867609 2014-09-22T13:59:19 JSONP alias
CupOfTea696 51b1fd55 2014-09-22T13:23:45 regex fixes Suggested by owner in #369
CupOfTea696 4d72a8f5 2014-09-22T02:14:25 Whitespace fix
CupOfTea696 9a32837d 2014-09-22T02:10:43 Property fix
CupOfTea696 8a8f6a0a 2014-09-22T02:03:23 JSON Language Added JSON support to prism.