main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
592 bytes
|
Line | |
---|
1 | // https://www.json.org/json-en.html
|
---|
2 | Prism.languages.json = {
|
---|
3 | 'property': {
|
---|
4 | pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,
|
---|
5 | lookbehind: true,
|
---|
6 | greedy: true
|
---|
7 | },
|
---|
8 | 'string': {
|
---|
9 | pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,
|
---|
10 | lookbehind: true,
|
---|
11 | greedy: true
|
---|
12 | },
|
---|
13 | 'comment': {
|
---|
14 | pattern: /\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,
|
---|
15 | greedy: true
|
---|
16 | },
|
---|
17 | 'number': /-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,
|
---|
18 | 'punctuation': /[{}[\],]/,
|
---|
19 | 'operator': /:/,
|
---|
20 | 'boolean': /\b(?:false|true)\b/,
|
---|
21 | 'null': {
|
---|
22 | pattern: /\bnull\b/,
|
---|
23 | alias: 'keyword'
|
---|
24 | }
|
---|
25 | };
|
---|
26 |
|
---|
27 | Prism.languages.webmanifest = Prism.languages.json;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.