mirror of
https://github.com/sjsdfg/effective-java-3rd-chinese.git
synced 2024-12-29 14:30:36 +08:00
19 lines
413 B
JavaScript
19 lines
413 B
JavaScript
Prism.languages.json = {
|
|
'comment': /\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,
|
|
'property': {
|
|
pattern: /"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,
|
|
greedy: true
|
|
},
|
|
'string': {
|
|
pattern: /"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,
|
|
greedy: true
|
|
},
|
|
'number': /-?\d+\.?\d*(e[+-]?\d+)?/i,
|
|
'punctuation': /[{}[\],]/,
|
|
'operator': /:/,
|
|
'boolean': /\b(?:true|false)\b/,
|
|
'null': /\bnull\b/
|
|
};
|
|
|
|
Prism.languages.jsonp = Prism.languages.json;
|