Elffuss BraidHub

kikocis/continue public

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