jellyfin-web/dashboard-ui/bower_components/prism/components/prism-json.js
2016-02-03 18:00:01 -05:00

12 lines
333 B
JavaScript

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,
};
Prism.languages.jsonp = Prism.languages.json;