You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
472 B
19 lines
472 B
Prism.languages.json = {
|
|
'property': {
|
|
pattern: /"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,
|
|
greedy: true
|
|
},
|
|
'string': {
|
|
pattern: /"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,
|
|
greedy: true
|
|
},
|
|
'comment': /\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,
|
|
'number': /-?\d+\.?\d*(?:e[+-]?\d+)?/i,
|
|
'punctuation': /[{}[\],]/,
|
|
'operator': /:/,
|
|
'boolean': /\b(?:true|false)\b/,
|
|
'null': {
|
|
pattern: /\bnull\b/,
|
|
alias: 'keyword'
|
|
}
|
|
};
|