diff --git a/components/prism-json.js b/components/prism-json.js index a7f54f6f99..8ae374748b 100644 --- a/components/prism-json.js +++ b/components/prism-json.js @@ -1,11 +1,11 @@ Prism.languages.json = { - 'property': /"(?:\\.|[^|"])*"(?=\s*:)/ig, - '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 + 'property': /"(?:\\.|[^\\"])*"(?=\s*:)/ig, + '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; diff --git a/components/prism-json.min.js b/components/prism-json.min.js index a437a3e370..e53db906d4 100644 --- a/components/prism-json.min.js +++ b/components/prism-json.min.js @@ -1 +1 @@ -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; \ No newline at end of file +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; \ No newline at end of file