|
6 | 6 | ], |
7 | 7 | "version": "https://github.com/Microsoft/vscode-JSON.tmLanguage/commit/9bd83f1c252b375e957203f21793316203f61f70", |
8 | 8 | "name": "JSON with comments", |
9 | | - "scopeName": "source.jsonc", |
| 9 | + "scopeName": "source.json.comments", |
10 | 10 | "patterns": [ |
11 | 11 | { |
12 | 12 | "include": "#value" |
|
17 | 17 | "begin": "\\[", |
18 | 18 | "beginCaptures": { |
19 | 19 | "0": { |
20 | | - "name": "punctuation.definition.array.begin.jsonc" |
| 20 | + "name": "punctuation.definition.array.begin.json.comments" |
21 | 21 | } |
22 | 22 | }, |
23 | 23 | "end": "\\]", |
24 | 24 | "endCaptures": { |
25 | 25 | "0": { |
26 | | - "name": "punctuation.definition.array.end.jsonc" |
| 26 | + "name": "punctuation.definition.array.end.json.comments" |
27 | 27 | } |
28 | 28 | }, |
29 | | - "name": "meta.structure.array.jsonc", |
| 29 | + "name": "meta.structure.array.json.comments", |
30 | 30 | "patterns": [ |
31 | 31 | { |
32 | 32 | "include": "#value" |
33 | 33 | }, |
34 | 34 | { |
35 | 35 | "match": ",", |
36 | | - "name": "punctuation.separator.array.jsonc" |
| 36 | + "name": "punctuation.separator.array.json.comments" |
37 | 37 | }, |
38 | 38 | { |
39 | 39 | "match": "[^\\s\\]]", |
40 | | - "name": "invalid.illegal.expected-array-separator.jsonc" |
| 40 | + "name": "invalid.illegal.expected-array-separator.json.comments" |
41 | 41 | } |
42 | 42 | ] |
43 | 43 | }, |
|
47 | 47 | "begin": "/\\*\\*(?!/)", |
48 | 48 | "captures": { |
49 | 49 | "0": { |
50 | | - "name": "punctuation.definition.comment.jsonc" |
| 50 | + "name": "punctuation.definition.comment.json.comments" |
51 | 51 | } |
52 | 52 | }, |
53 | 53 | "end": "\\*/", |
54 | | - "name": "comment.block.documentation.jsonc" |
| 54 | + "name": "comment.block.documentation.json.comments" |
55 | 55 | }, |
56 | 56 | { |
57 | 57 | "begin": "/\\*", |
58 | 58 | "captures": { |
59 | 59 | "0": { |
60 | | - "name": "punctuation.definition.comment.jsonc" |
| 60 | + "name": "punctuation.definition.comment.json.comments" |
61 | 61 | } |
62 | 62 | }, |
63 | 63 | "end": "\\*/", |
64 | | - "name": "comment.block.jsonc" |
| 64 | + "name": "comment.block.json.comments" |
65 | 65 | }, |
66 | 66 | { |
67 | 67 | "captures": { |
68 | 68 | "1": { |
69 | | - "name": "punctuation.definition.comment.jsonc" |
| 69 | + "name": "punctuation.definition.comment.json.comments" |
70 | 70 | } |
71 | 71 | }, |
72 | 72 | "match": "(//).*$\\n?", |
|
76 | 76 | }, |
77 | 77 | "constant": { |
78 | 78 | "match": "\\b(?:true|false|null)\\b", |
79 | | - "name": "constant.language.jsonc" |
| 79 | + "name": "constant.language.json.comments" |
80 | 80 | }, |
81 | 81 | "number": { |
82 | 82 | "match": "(?x) # turn on extended mode\n -? # an optional minus\n (?:\n 0 # a zero\n | # ...or...\n [1-9] # a 1-9 character\n \\d* # followed by zero or more digits\n )\n (?:\n (?:\n \\. # a period\n \\d+ # followed by one or more digits\n )?\n (?:\n [eE] # an e character\n [+-]? # followed by an option +/-\n \\d+ # followed by one or more digits\n )? # make exponent optional\n )? # make decimal portion optional", |
83 | | - "name": "constant.numeric.jsonc" |
| 83 | + "name": "constant.numeric.json.comments" |
84 | 84 | }, |
85 | 85 | "object": { |
86 | 86 | "begin": "\\{", |
87 | 87 | "beginCaptures": { |
88 | 88 | "0": { |
89 | | - "name": "punctuation.definition.dictionary.begin.jsonc" |
| 89 | + "name": "punctuation.definition.dictionary.begin.json.comments" |
90 | 90 | } |
91 | 91 | }, |
92 | 92 | "end": "\\}", |
93 | 93 | "endCaptures": { |
94 | 94 | "0": { |
95 | | - "name": "punctuation.definition.dictionary.end.jsonc" |
| 95 | + "name": "punctuation.definition.dictionary.end.json.comments" |
96 | 96 | } |
97 | 97 | }, |
98 | | - "name": "meta.structure.dictionary.jsonc", |
| 98 | + "name": "meta.structure.dictionary.json.comments", |
99 | 99 | "patterns": [ |
100 | 100 | { |
101 | 101 | "comment": "the JSON object key", |
|
108 | 108 | "begin": ":", |
109 | 109 | "beginCaptures": { |
110 | 110 | "0": { |
111 | | - "name": "punctuation.separator.dictionary.key-value.jsonc" |
| 111 | + "name": "punctuation.separator.dictionary.key-value.json.comments" |
112 | 112 | } |
113 | 113 | }, |
114 | 114 | "end": "(,)|(?=\\})", |
115 | 115 | "endCaptures": { |
116 | 116 | "1": { |
117 | | - "name": "punctuation.separator.dictionary.pair.jsonc" |
| 117 | + "name": "punctuation.separator.dictionary.pair.json.comments" |
118 | 118 | } |
119 | 119 | }, |
120 | | - "name": "meta.structure.dictionary.value.jsonc", |
| 120 | + "name": "meta.structure.dictionary.value.json.comments", |
121 | 121 | "patterns": [ |
122 | 122 | { |
123 | 123 | "comment": "the JSON object value", |
124 | 124 | "include": "#value" |
125 | 125 | }, |
126 | 126 | { |
127 | 127 | "match": "[^\\s,]", |
128 | | - "name": "invalid.illegal.expected-dictionary-separator.jsonc" |
| 128 | + "name": "invalid.illegal.expected-dictionary-separator.json.comments" |
129 | 129 | } |
130 | 130 | ] |
131 | 131 | }, |
132 | 132 | { |
133 | 133 | "match": "[^\\s\\}]", |
134 | | - "name": "invalid.illegal.expected-dictionary-separator.jsonc" |
| 134 | + "name": "invalid.illegal.expected-dictionary-separator.json.comments" |
135 | 135 | } |
136 | 136 | ] |
137 | 137 | }, |
138 | 138 | "string": { |
139 | 139 | "begin": "\"", |
140 | 140 | "beginCaptures": { |
141 | 141 | "0": { |
142 | | - "name": "punctuation.definition.string.begin.jsonc" |
| 142 | + "name": "punctuation.definition.string.begin.json.comments" |
143 | 143 | } |
144 | 144 | }, |
145 | 145 | "end": "\"", |
146 | 146 | "endCaptures": { |
147 | 147 | "0": { |
148 | | - "name": "punctuation.definition.string.end.jsonc" |
| 148 | + "name": "punctuation.definition.string.end.json.comments" |
149 | 149 | } |
150 | 150 | }, |
151 | | - "name": "string.quoted.double.jsonc", |
| 151 | + "name": "string.quoted.double.json.comments", |
152 | 152 | "patterns": [ |
153 | 153 | { |
154 | 154 | "include": "#stringcontent" |
|
159 | 159 | "begin": "\"", |
160 | 160 | "beginCaptures": { |
161 | 161 | "0": { |
162 | | - "name": "punctuation.support.type.property-name.begin.jsonc" |
| 162 | + "name": "punctuation.support.type.property-name.begin.json.comments" |
163 | 163 | } |
164 | 164 | }, |
165 | 165 | "end": "\"", |
166 | 166 | "endCaptures": { |
167 | 167 | "0": { |
168 | | - "name": "punctuation.support.type.property-name.end.jsonc" |
| 168 | + "name": "punctuation.support.type.property-name.end.json.comments" |
169 | 169 | } |
170 | 170 | }, |
171 | | - "name": "string.jsonc support.type.property-name.jsonc", |
| 171 | + "name": "string.json.comments support.type.property-name.json.comments", |
172 | 172 | "patterns": [ |
173 | 173 | { |
174 | 174 | "include": "#stringcontent" |
|
179 | 179 | "patterns": [ |
180 | 180 | { |
181 | 181 | "match": "(?x) # turn on extended mode\n \\\\ # a literal backslash\n (?: # ...followed by...\n [\"\\\\/bfnrt] # one of these characters\n | # ...or...\n u # a u\n [0-9a-fA-F]{4}) # and four hex digits", |
182 | | - "name": "constant.character.escape.jsonc" |
| 182 | + "name": "constant.character.escape.json.comments" |
183 | 183 | }, |
184 | 184 | { |
185 | 185 | "match": "\\\\.", |
186 | | - "name": "invalid.illegal.unrecognized-string-escape.jsonc" |
| 186 | + "name": "invalid.illegal.unrecognized-string-escape.json.comments" |
187 | 187 | } |
188 | 188 | ] |
189 | 189 | }, |
|
0 commit comments