15 lines
368 B
JavaScript
15 lines
368 B
JavaScript
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;
|