wp-prismatic/lib/prism/js/lang-json.js
Jeff Starr 785b128f8b Update to version 1.3
git-svn-id: https://plugins.svn.wordpress.org/prismatic/trunk@1661551 b8457f37-d9ea-0310-8a92-e5e31aec5664
2017-05-20 23:58:35 +00:00

1 line
291 B
JavaScript

Prism.languages.json={property:/"(?:\\.|[^\\"])*"(?=\s*:)/gi,string:/"(?!:)(?:\\.|[^\\"])*"(?!:)/g,number:/\b-?(0x[\dA-Fa-f]+|\d*\.?\d+([Ee][+-]?\d+)?)\b/g,punctuation:/[{}[\]);,]/g,operator:/:/g,"boolean":/\b(true|false)\b/gi,"null":/\bnull\b/gi},Prism.languages.jsonp=Prism.languages.json;