Elffuss BraidHub

kikocis/continue public

bdbad06b302d · 9.3 KiBRawPermalink
1{
2 "name": "MagicRegExp",
3 "scopeName": "source.regexp.python",
4 "fileTypes": [
5 "re"
6 ],
7 "uuid": "39e15186-71e6-11e5-b82c-7c6d62900c7c",
8 "patterns": [
9 {
10 "include": "#regexp-expression"
11 }
12 ],
13 "repository": {
14 "regexp-base-expression": {
15 "patterns": [
16 {
17 "name": "support.other.match.any.regexp",
18 "match": "\\."
19 },
20 {
21 "name": "support.other.match.begin.regexp",
22 "match": "\\^"
23 },
24 {
25 "name": "support.other.match.end.regexp",
26 "match": "\\$"
27 },
28 {
29 "name": "keyword.operator.quantifier.regexp",
30 "match": "[+*?]\\??"
31 },
32 {
33 "name": "keyword.operator.disjunction.regexp",
34 "match": "\\|"
35 },
36 {
37 "name": "keyword.operator.quantifier.regexp",
38 "match": "(?x)\n \\{(\n \\d+ | \\d+,(\\d+)? | ,\\d+\n )\\}\n"
39 },
40 {
41 "include": "#regexp-escape-sequence"
42 }
43 ]
44 },
45 "regexp-backreference-number": {
46 "name": "meta.backreference.regexp",
47 "match": "(\\\\[1-9]\\d?)",
48 "captures": {
49 "1": {
50 "name": "entity.name.tag.backreference.regexp"
51 }
52 }
53 },
54 "regexp-backreference": {
55 "name": "meta.backreference.named.regexp",
56 "match": "(?x)\n (\\() (\\?P= \\w+(?:\\s+[[:alnum:]]+)?) (\\))\n",
57 "captures": {
58 "1": {
59 "name": "punctuation.parenthesis.backreference.named.begin.regexp support.other.parenthesis.regexp"
60 },
61 "2": {
62 "name": "entity.name.tag.named.backreference.regexp"
63 },
64 "3": {
65 "name": "punctuation.parenthesis.backreference.named.end.regexp support.other.parenthesis.regexp"
66 }
67 }
68 },
69 "regexp-flags": {
70 "name": "storage.modifier.flag.regexp",
71 "match": "\\(\\?[aiLmsux]+\\)"
72 },
73 "regexp-escape-special": {
74 "name": "support.other.escape.special.regexp",
75 "match": "\\\\([AbBdDsSwWZ])"
76 },
77 "regexp-escape-character": {
78 "name": "constant.character.escape.regexp",
79 "match": "(?x)\n \\\\ (\n x[0-9A-Fa-f]{2}\n | 0[0-7]{1,2}\n | [0-7]{3}\n )\n"
80 },
81 "regexp-escape-unicode": {
82 "name": "constant.character.unicode.regexp",
83 "match": "(?x)\n \\\\ (\n u[0-9A-Fa-f]{4}\n | U[0-9A-Fa-f]{8}\n )\n"
84 },
85 "regexp-escape-catchall": {
86 "name": "constant.character.escape.regexp",
87 "match": "\\\\(.|\\n)"
88 },
89 "regexp-escape-sequence": {
90 "patterns": [
91 {
92 "include": "#regexp-escape-special"
93 },
94 {
95 "include": "#regexp-escape-character"
96 },
97 {
98 "include": "#regexp-escape-unicode"
99 },
100 {
101 "include": "#regexp-backreference-number"
102 },
103 {
104 "include": "#regexp-escape-catchall"
105 }
106 ]
107 },
108 "regexp-charecter-set-escapes": {
109 "patterns": [
110 {
111 "name": "constant.character.escape.regexp",
112 "match": "\\\\[abfnrtv\\\\]"
113 },
114 {
115 "include": "#regexp-escape-special"
116 },
117 {
118 "name": "constant.character.escape.regexp",
119 "match": "\\\\([0-7]{1,3})"
120 },
121 {
122 "include": "#regexp-escape-character"
123 },
124 {
125 "include": "#regexp-escape-unicode"
126 },
127 {
128 "include": "#regexp-escape-catchall"
129 }
130 ]
131 },
132 "regexp-expression": {
133 "patterns": [
134 {
135 "include": "#regexp-base-expression"
136 },
137 {
138 "include": "#regexp-character-set"
139 },
140 {
141 "include": "#regexp-comments"
142 },
143 {
144 "include": "#regexp-flags"
145 },
146 {
147 "include": "#regexp-named-group"
148 },
149 {
150 "include": "#regexp-backreference"
151 },
152 {
153 "include": "#regexp-lookahead"
154 },
155 {
156 "include": "#regexp-lookahead-negative"
157 },
158 {
159 "include": "#regexp-lookbehind"
160 },
161 {
162 "include": "#regexp-lookbehind-negative"
163 },
164 {
165 "include": "#regexp-conditional"
166 },
167 {
168 "include": "#regexp-parentheses-non-capturing"
169 },
170 {
171 "include": "#regexp-parentheses"
172 }
173 ]
174 },
175 "regexp-character-set": {
176 "patterns": [
177 {
178 "match": "(?x)\n \\[ \\^? \\] (?! .*?\\])\n"
179 },
180 {
181 "name": "meta.character.set.regexp",
182 "begin": "(\\[)(\\^)?(\\])?",
183 "end": "(\\])",
184 "beginCaptures": {
185 "1": {
186 "name": "constant.other.set.regexp punctuation.character.set.begin.regexp"
187 },
188 "2": {
189 "name": "keyword.operator.negation.regexp"
190 },
191 "3": {
192 "name": "constant.character.set.regexp"
193 }
194 },
195 "endCaptures": {
196 "1": {
197 "name": "constant.other.set.regexp punctuation.character.set.end.regexp"
198 },
199 "2": {
200 "name": "invalid.illegal.newline.python"
201 }
202 },
203 "patterns": [
204 {
205 "include": "#regexp-charecter-set-escapes"
206 },
207 {
208 "name": "constant.character.set.regexp",
209 "match": "[^\\n]"
210 }
211 ]
212 }
213 ]
214 },
215 "regexp-named-group": {
216 "name": "meta.named.regexp",
217 "begin": "(?x)\n (\\() (\\?P <\\w+(?:\\s+[[:alnum:]]+)?>)\n",
218 "end": "(\\))",
219 "beginCaptures": {
220 "1": {
221 "name": "punctuation.parenthesis.named.begin.regexp support.other.parenthesis.regexp"
222 },
223 "2": {
224 "name": "entity.name.tag.named.group.regexp"
225 }
226 },
227 "endCaptures": {
228 "1": {
229 "name": "punctuation.parenthesis.named.end.regexp support.other.parenthesis.regexp"
230 },
231 "2": {
232 "name": "invalid.illegal.newline.python"
233 }
234 },
235 "patterns": [
236 {
237 "include": "#regexp-expression"
238 }
239 ]
240 },
241 "regexp-comments": {
242 "name": "comment.regexp",
243 "begin": "\\(\\?#",
244 "end": "(\\))",
245 "beginCaptures": {
246 "0": {
247 "name": "punctuation.comment.begin.regexp"
248 }
249 },
250 "endCaptures": {
251 "1": {
252 "name": "punctuation.comment.end.regexp"
253 },
254 "2": {
255 "name": "invalid.illegal.newline.python"
256 }
257 },
258 "patterns": [
259 {
260 "include": "#codetags"
261 }
262 ]
263 },
264 "regexp-lookahead": {
265 "begin": "(\\()\\?=",
266 "end": "(\\))",
267 "beginCaptures": {
268 "0": {
269 "name": "keyword.operator.lookahead.regexp"
270 },
271 "1": {
272 "name": "punctuation.parenthesis.lookahead.begin.regexp"
273 }
274 },
275 "endCaptures": {
276 "1": {
277 "name": "punctuation.parenthesis.lookahead.end.regexp keyword.operator.lookahead.regexp"
278 },
279 "2": {
280 "name": "invalid.illegal.newline.python"
281 }
282 },
283 "patterns": [
284 {
285 "include": "#regexp-expression"
286 }
287 ]
288 },
289 "regexp-lookahead-negative": {
290 "begin": "(\\()\\?!",
291 "end": "(\\))",
292 "beginCaptures": {
293 "0": {
294 "name": "keyword.operator.lookahead.negative.regexp"
295 },
296 "1": {
297 "name": "punctuation.parenthesis.lookahead.begin.regexp"
298 }
299 },
300 "endCaptures": {
301 "1": {
302 "name": "punctuation.parenthesis.lookahead.end.regexp keyword.operator.lookahead.negative.regexp"
303 },
304 "2": {
305 "name": "invalid.illegal.newline.python"
306 }
307 },
308 "patterns": [
309 {
310 "include": "#regexp-expression"
311 }
312 ]
313 },
314 "regexp-lookbehind": {
315 "begin": "(\\()\\?<=",
316 "end": "(\\))",
317 "beginCaptures": {
318 "0": {
319 "name": "keyword.operator.lookbehind.regexp"
320 },
321 "1": {
322 "name": "punctuation.parenthesis.lookbehind.begin.regexp"
323 }
324 },
325 "endCaptures": {
326 "1": {
327 "name": "punctuation.parenthesis.lookbehind.end.regexp keyword.operator.lookbehind.regexp"
328 },
329 "2": {
330 "name": "invalid.illegal.newline.python"
331 }
332 },
333 "patterns": [
334 {
335 "include": "#regexp-expression"
336 }
337 ]
338 },
339 "regexp-lookbehind-negative": {
340 "begin": "(\\()\\?<!",
341 "end": "(\\))",
342 "beginCaptures": {
343 "0": {
344 "name": "keyword.operator.lookbehind.negative.regexp"
345 },
346 "1": {
347 "name": "punctuation.parenthesis.lookbehind.begin.regexp"
348 }
349 },
350 "endCaptures": {
351 "1": {
352 "name": "punctuation.parenthesis.lookbehind.end.regexp keyword.operator.lookbehind.negative.regexp"
353 },
354 "2": {
355 "name": "invalid.illegal.newline.python"
356 }
357 },
358 "patterns": [
359 {
360 "include": "#regexp-expression"
361 }
362 ]
363 },
364 "regexp-conditional": {
365 "begin": "(\\()\\?\\((\\w+(?:\\s+[[:alnum:]]+)?|\\d+)\\)",
366 "end": "(\\))",
367 "beginCaptures": {
368 "0": {
369 "name": "keyword.operator.conditional.regexp"
370 },
371 "1": {
372 "name": "punctuation.parenthesis.conditional.begin.regexp"
373 }
374 },
375 "endCaptures": {
376 "1": {
377 "name": "punctuation.parenthesis.conditional.end.regexp keyword.operator.conditional.negative.regexp"
378 },
379 "2": {
380 "name": "invalid.illegal.newline.python"
381 }
382 },
383 "patterns": [
384 {
385 "include": "#regexp-expression"
386 }
387 ]
388 },
389 "regexp-parentheses-non-capturing": {
390 "begin": "\\(\\?:",
391 "end": "(\\))",
392 "beginCaptures": {
393 "0": {
394 "name": "punctuation.parenthesis.non-capturing.begin.regexp support.other.parenthesis.regexp"
395 }
396 },
397 "endCaptures": {
398 "1": {
399 "name": "punctuation.parenthesis.non-capturing.end.regexp support.other.parenthesis.regexp"
400 },
401 "2": {
402 "name": "invalid.illegal.newline.python"
403 }
404 },
405 "patterns": [
406 {
407 "include": "#regexp-expression"
408 }
409 ]
410 },
411 "regexp-parentheses": {
412 "begin": "\\(",
413 "end": "(\\))",
414 "beginCaptures": {
415 "0": {
416 "name": "punctuation.parenthesis.begin.regexp support.other.parenthesis.regexp"
417 }
418 },
419 "endCaptures": {
420 "1": {
421 "name": "punctuation.parenthesis.end.regexp support.other.parenthesis.regexp"
422 },
423 "2": {
424 "name": "invalid.illegal.newline.python"
425 }
426 },
427 "patterns": [
428 {
429 "include": "#regexp-expression"
430 }
431 ]
432 }
433 },
434 "version": "https://github.com/MagicStack/MagicPython/commit/a45287d159f82256c768ad2e1114ca9751d28670"
435}