katoikia-app/web-ui/web-react/node_modules/prismjs/components/prism-json.js

15 lines
368 B
JavaScript
Raw Normal View History

2022-07-06 04:15:11 +00:00
Prism.languages.json = {
'property': /"(?:\\.|[^\\"\r\n])*"(?=\s*:)/i,
'string': {
pattern: /"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,
greedy: true
},
'number': /\b-?(?:0x[\dA-Fa-f]+|\d*\.?\d+(?:[Ee][+-]?\d+)?)\b/,
'punctuation': /[{}[\]);,]/,
'operator': /:/g,
'boolean': /\b(?:true|false)\b/i,
'null': /\bnull\b/i
};
Prism.languages.jsonp = Prism.languages.json;