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.
27 lines
592 B
27 lines
592 B
// https://www.json.org/json-en.html |
|
Prism.languages.json = { |
|
'property': { |
|
pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/, |
|
lookbehind: true, |
|
greedy: true |
|
}, |
|
'string': { |
|
pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/, |
|
lookbehind: true, |
|
greedy: true |
|
}, |
|
'comment': { |
|
pattern: /\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/, |
|
greedy: true |
|
}, |
|
'number': /-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i, |
|
'punctuation': /[{}[\],]/, |
|
'operator': /:/, |
|
'boolean': /\b(?:false|true)\b/, |
|
'null': { |
|
pattern: /\bnull\b/, |
|
alias: 'keyword' |
|
} |
|
}; |
|
|
|
Prism.languages.webmanifest = Prism.languages.json;
|
|
|