@codingame/monaco-languageclient-wrapper 1.0.9 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (170) hide show
  1. package/dist/BSV.tmLanguage.js +299 -0
  2. package/dist/COBOL Copybook.js +2017 -0
  3. package/dist/COBOL.js +2017 -0
  4. package/dist/COBOL.tmLanguage.js +149 -0
  5. package/dist/CodinGameMonacoWorkspace.d.ts +13 -0
  6. package/dist/Configuration.d.ts +15 -0
  7. package/dist/Erlang.plist.js +1752 -0
  8. package/dist/JSON.tmLanguage.js +221 -0
  9. package/dist/JSONC.tmLanguage.js +221 -0
  10. package/dist/JavaScript.tmLanguage.js +5894 -0
  11. package/dist/Kotlin.tmLanguage.js +724 -0
  12. package/dist/MagicPython.tmLanguage.js +5340 -0
  13. package/dist/MagicRegExp.tmLanguage.js +505 -0
  14. package/dist/Regular Expressions (JavaScript).tmLanguage.js +166 -0
  15. package/dist/SQL.plist.js +482 -0
  16. package/dist/Scala.tmLanguage.js +1255 -0
  17. package/dist/TypeScript.tmLanguage.js +5641 -0
  18. package/dist/WatchableConsoleWindow.d.ts +22 -0
  19. package/dist/_rollupPluginBabelHelpers.js +54 -0
  20. package/dist/asp-vb-net.tmlanguage.js +247 -0
  21. package/dist/bsv.js +49 -0
  22. package/dist/c.js +18 -0
  23. package/dist/c.tmLanguage.js +3347 -0
  24. package/dist/cabal.tmLanguage.js +66 -0
  25. package/dist/clojure.tmLanguage.js +443 -0
  26. package/dist/codeblock-cabal.js +42 -0
  27. package/dist/codeblock-haskell.js +42 -0
  28. package/dist/codeblock-literate-haskell.js +42 -0
  29. package/dist/codeblock.js +36 -0
  30. package/dist/codeblock2.js +95 -0
  31. package/dist/coffeescript.js +18 -0
  32. package/dist/coffeescript.tmLanguage.js +1324 -0
  33. package/dist/configuration/index.d.ts +5 -0
  34. package/dist/cpp.js +18 -0
  35. package/dist/cpp.tmLanguage.js +19996 -0
  36. package/dist/createLanguageClient.d.ts +2 -2
  37. package/dist/csharp.js +18 -0
  38. package/dist/csharp.tmLanguage.js +4750 -0
  39. package/dist/css.tmLanguage.js +1873 -0
  40. package/dist/css.worker.js +6 -0
  41. package/dist/cssContribution.js +10 -0
  42. package/dist/cuda-cpp.tmLanguage.js +19993 -0
  43. package/dist/d.js +3159 -0
  44. package/dist/dart.js +530 -0
  45. package/dist/diet.js +758 -0
  46. package/dist/diet2.js +92 -0
  47. package/dist/dml.js +169 -0
  48. package/dist/eex.js +55 -0
  49. package/dist/elixir.js +2341 -0
  50. package/dist/elixir2.js +184 -0
  51. package/dist/erlang.js +195 -0
  52. package/dist/expression.js +846 -0
  53. package/dist/extensions/autofold.d.ts +2 -0
  54. package/dist/extensions/cobol.d.ts +2 -0
  55. package/dist/extensions/index.d.ts +2 -0
  56. package/dist/features/cssContribution.d.ts +1 -0
  57. package/dist/features/htmlContribution.d.ts +1 -0
  58. package/dist/features/jsonContribution.d.ts +1 -0
  59. package/dist/features/typescriptContribution.d.ts +1 -0
  60. package/dist/fsharp.js +18 -0
  61. package/dist/fsharp.tmLanguage.js +1811 -0
  62. package/dist/go.tmLanguage.js +1025 -0
  63. package/dist/groovy.js +229 -0
  64. package/dist/groovy.tmLanguage.js +1391 -0
  65. package/dist/haskell.tmLanguage.js +629 -0
  66. package/dist/html (eex).js +31 -0
  67. package/dist/html-derivative.tmLanguage.js +57 -0
  68. package/dist/html.tmLanguage.js +2652 -0
  69. package/dist/html.tmLanguage2.js +97 -0
  70. package/dist/html.worker.js +6 -0
  71. package/dist/htmlContribution.js +10 -0
  72. package/dist/index.d.ts +2 -2
  73. package/dist/inline-styles.js +104 -0
  74. package/dist/inline-template.js +88 -0
  75. package/dist/java.js +18 -0
  76. package/dist/java.tmLanguage.js +1863 -0
  77. package/dist/javascript.js +196 -0
  78. package/dist/javascriptreact.js +196 -0
  79. package/dist/jsdoc.js.injection.tmLanguage.js +32 -0
  80. package/dist/jsdoc.ts.injection.tmLanguage.js +32 -0
  81. package/dist/json.worker.js +6 -0
  82. package/dist/jsonContribution.js +78 -0
  83. package/dist/keybindings/index.d.ts +2 -0
  84. package/dist/keybindings/keybindingHelper.d.ts +2 -0
  85. package/dist/keybindings/vim.d.ts +3 -0
  86. package/dist/kotlin.js +117 -0
  87. package/dist/kotlinscript.js +117 -0
  88. package/dist/languageClient.d.ts +8 -14
  89. package/dist/languages/extensions/grammarLoader.d.ts +91037 -0
  90. package/dist/languages/extensions/snippetLoader.d.ts +4578 -0
  91. package/dist/languages/index.d.ts +3 -0
  92. package/dist/languages/monarch/index.d.ts +7 -0
  93. package/dist/languages/monarch/list.d.ts +7 -0
  94. package/dist/languages/monarch/stub-generator.d.ts +2 -0
  95. package/dist/languages/snippets/index.d.ts +1 -0
  96. package/dist/languages/textMate/CGTMGrammarFactory.d.ts +5 -0
  97. package/dist/languages/textMate/TextMateTokensProvider.d.ts +11 -0
  98. package/dist/languages/textMate/index.d.ts +2 -0
  99. package/dist/literateHaskell.tmLanguage.js +70 -0
  100. package/dist/lua.tmLanguage.js +289 -0
  101. package/dist/main.js +619 -314
  102. package/dist/markdown.js +103 -0
  103. package/dist/markdown.tmLanguage.js +2784 -0
  104. package/dist/merlin.js +111 -0
  105. package/dist/monaco.d.ts +8 -0
  106. package/dist/objective-c.tmLanguage.js +3618 -0
  107. package/dist/ocaml-hover-info.js +34 -0
  108. package/dist/ocaml-hover-type.js +24 -0
  109. package/dist/ocaml-markdown-codeblock.js +42 -0
  110. package/dist/ocaml.js +2979 -0
  111. package/dist/ocamlbuild.js +239 -0
  112. package/dist/opam.js +149 -0
  113. package/dist/pascal.js +382 -0
  114. package/dist/pascal.tmLanguage.js +169 -0
  115. package/dist/perl.tmLanguage.js +2986 -0
  116. package/dist/perl6.tmLanguage.js +323 -0
  117. package/dist/pgsql.tmLanguage.js +284 -0
  118. package/dist/php.js +265 -0
  119. package/dist/php.tmLanguage.js +3791 -0
  120. package/dist/platform.tmLanguage.js +1135 -0
  121. package/dist/powershell.js +18 -0
  122. package/dist/powershell.tmLanguage.js +1037 -0
  123. package/dist/r.tmLanguage.js +551 -0
  124. package/dist/reason-hover-info.js +34 -0
  125. package/dist/reason-hover-signature.js +21 -0
  126. package/dist/reason-hover-type.js +21 -0
  127. package/dist/reason-markdown-codeblock.js +42 -0
  128. package/dist/reason.js +100 -0
  129. package/dist/ruby.tmLanguage.js +2784 -0
  130. package/dist/rust.tmLanguage.js +1178 -0
  131. package/dist/sassdoc.tmLanguage.js +362 -0
  132. package/dist/scss.tmLanguage.js +1887 -0
  133. package/dist/sdc.tmLanguage.js +712 -0
  134. package/dist/sdl.js +162 -0
  135. package/dist/services/Configuration.d.ts +2 -3
  136. package/dist/services/EditorModelResolverService.d.ts +8 -0
  137. package/dist/services/MultiEditorStandaloneCodeEditorService.d.ts +7 -0
  138. package/dist/services/WatchableConsoleWindow.d.ts +2 -0
  139. package/dist/services.d.ts +1 -2
  140. package/dist/shell-unix-bash.tmLanguage.js +1291 -0
  141. package/dist/sql.js +21 -0
  142. package/dist/staticOptions.d.ts +9 -0
  143. package/dist/stub-generator.js +15 -0
  144. package/dist/swift.js +183 -0
  145. package/dist/swift.tmLanguage.js +3288 -0
  146. package/dist/systemverilog.js +208 -0
  147. package/dist/systemverilog.tmLanguage.js +1067 -0
  148. package/dist/tcl.js +151 -0
  149. package/dist/tcl.tmlanguage.yaml.js +5484 -0
  150. package/dist/template.js +207 -0
  151. package/dist/theme/index.d.ts +3 -0
  152. package/dist/theme/registry.d.ts +4 -0
  153. package/dist/theme/semanticHighlight.d.ts +1 -0
  154. package/dist/theme/tools.d.ts +13 -0
  155. package/dist/tools.d.ts +3 -0
  156. package/dist/ts.worker.js +6 -0
  157. package/dist/typescript.js +312 -0
  158. package/dist/typescriptContribution.js +36 -0
  159. package/dist/typescriptreact.js +312 -0
  160. package/dist/ucf.tmLanguage.js +36 -0
  161. package/dist/vb.js +88 -0
  162. package/dist/verilog.js +432 -0
  163. package/dist/verilog.tmLanguage.js +321 -0
  164. package/dist/worker.d.ts +6 -0
  165. package/dist/worker.js +54 -0
  166. package/dist/xml.tmLanguage.js +395 -0
  167. package/dist/xsl.tmLanguage.js +102 -0
  168. package/dist/yaml.tmLanguage.js +629 -0
  169. package/package.json +19 -20
  170. package/stats.html +1 -1
@@ -0,0 +1,505 @@
1
+ var information_for_contributors = [
2
+ "This file has been converted from https://github.com/microsoft/vscode/blob/master/extensions/python/",
3
+ "If you want to provide a fix or improvement, please create a pull request against the original repository.",
4
+ "Once accepted there, we are happy to receive an update request."
5
+ ];
6
+ var version = "https://github.com/MagicStack/MagicPython/commit/c9b3409deb69acec31bbf7913830e93a046b30cc";
7
+ var name = "MagicRegExp";
8
+ var scopeName = "source.regexp.python";
9
+ var patterns = [
10
+ {
11
+ include: "#regexp-expression"
12
+ }
13
+ ];
14
+ var repository = {
15
+ "regexp-base-expression": {
16
+ patterns: [
17
+ {
18
+ include: "#regexp-quantifier"
19
+ },
20
+ {
21
+ include: "#regexp-base-common"
22
+ }
23
+ ]
24
+ },
25
+ "fregexp-base-expression": {
26
+ patterns: [
27
+ {
28
+ include: "#fregexp-quantifier"
29
+ },
30
+ {
31
+ include: "#fstring-formatting-braces"
32
+ },
33
+ {
34
+ match: "\\{.*?\\}"
35
+ },
36
+ {
37
+ include: "#regexp-base-common"
38
+ }
39
+ ]
40
+ },
41
+ "fstring-formatting-braces": {
42
+ patterns: [
43
+ {
44
+ comment: "empty braces are illegal",
45
+ match: "({)(\\s*?)(})",
46
+ captures: {
47
+ "1": {
48
+ name: "constant.character.format.placeholder.other.python"
49
+ },
50
+ "2": {
51
+ name: "invalid.illegal.brace.python"
52
+ },
53
+ "3": {
54
+ name: "constant.character.format.placeholder.other.python"
55
+ }
56
+ }
57
+ },
58
+ {
59
+ name: "constant.character.escape.python",
60
+ match: "({{|}})"
61
+ }
62
+ ]
63
+ },
64
+ "regexp-base-common": {
65
+ patterns: [
66
+ {
67
+ name: "support.other.match.any.regexp",
68
+ match: "\\."
69
+ },
70
+ {
71
+ name: "support.other.match.begin.regexp",
72
+ match: "\\^"
73
+ },
74
+ {
75
+ name: "support.other.match.end.regexp",
76
+ match: "\\$"
77
+ },
78
+ {
79
+ name: "keyword.operator.quantifier.regexp",
80
+ match: "[+*?]\\??"
81
+ },
82
+ {
83
+ name: "keyword.operator.disjunction.regexp",
84
+ match: "\\|"
85
+ },
86
+ {
87
+ include: "#regexp-escape-sequence"
88
+ }
89
+ ]
90
+ },
91
+ "regexp-quantifier": {
92
+ name: "keyword.operator.quantifier.regexp",
93
+ match: "(?x)\n \\{(\n \\d+ | \\d+,(\\d+)? | ,\\d+\n )\\}\n"
94
+ },
95
+ "fregexp-quantifier": {
96
+ name: "keyword.operator.quantifier.regexp",
97
+ match: "(?x)\n \\{\\{(\n \\d+ | \\d+,(\\d+)? | ,\\d+\n )\\}\\}\n"
98
+ },
99
+ "regexp-backreference-number": {
100
+ name: "meta.backreference.regexp",
101
+ match: "(\\\\[1-9]\\d?)",
102
+ captures: {
103
+ "1": {
104
+ name: "entity.name.tag.backreference.regexp"
105
+ }
106
+ }
107
+ },
108
+ "regexp-backreference": {
109
+ name: "meta.backreference.named.regexp",
110
+ match: "(?x)\n (\\() (\\?P= \\w+(?:\\s+[[:alnum:]]+)?) (\\))\n",
111
+ captures: {
112
+ "1": {
113
+ name: "support.other.parenthesis.regexp punctuation.parenthesis.backreference.named.begin.regexp"
114
+ },
115
+ "2": {
116
+ name: "entity.name.tag.named.backreference.regexp"
117
+ },
118
+ "3": {
119
+ name: "support.other.parenthesis.regexp punctuation.parenthesis.backreference.named.end.regexp"
120
+ }
121
+ }
122
+ },
123
+ "regexp-flags": {
124
+ name: "storage.modifier.flag.regexp",
125
+ match: "\\(\\?[aiLmsux]+\\)"
126
+ },
127
+ "regexp-escape-special": {
128
+ name: "support.other.escape.special.regexp",
129
+ match: "\\\\([AbBdDsSwWZ])"
130
+ },
131
+ "regexp-escape-character": {
132
+ name: "constant.character.escape.regexp",
133
+ match: "(?x)\n \\\\ (\n x[0-9A-Fa-f]{2}\n | 0[0-7]{1,2}\n | [0-7]{3}\n )\n"
134
+ },
135
+ "regexp-escape-unicode": {
136
+ name: "constant.character.unicode.regexp",
137
+ match: "(?x)\n \\\\ (\n u[0-9A-Fa-f]{4}\n | U[0-9A-Fa-f]{8}\n )\n"
138
+ },
139
+ "regexp-escape-catchall": {
140
+ name: "constant.character.escape.regexp",
141
+ match: "\\\\(.|\\n)"
142
+ },
143
+ "regexp-escape-sequence": {
144
+ patterns: [
145
+ {
146
+ include: "#regexp-escape-special"
147
+ },
148
+ {
149
+ include: "#regexp-escape-character"
150
+ },
151
+ {
152
+ include: "#regexp-escape-unicode"
153
+ },
154
+ {
155
+ include: "#regexp-backreference-number"
156
+ },
157
+ {
158
+ include: "#regexp-escape-catchall"
159
+ }
160
+ ]
161
+ },
162
+ "regexp-charecter-set-escapes": {
163
+ patterns: [
164
+ {
165
+ name: "constant.character.escape.regexp",
166
+ match: "\\\\[abfnrtv\\\\]"
167
+ },
168
+ {
169
+ include: "#regexp-escape-special"
170
+ },
171
+ {
172
+ name: "constant.character.escape.regexp",
173
+ match: "\\\\([0-7]{1,3})"
174
+ },
175
+ {
176
+ include: "#regexp-escape-character"
177
+ },
178
+ {
179
+ include: "#regexp-escape-unicode"
180
+ },
181
+ {
182
+ include: "#regexp-escape-catchall"
183
+ }
184
+ ]
185
+ },
186
+ codetags: {
187
+ match: "(?:\\b(NOTE|XXX|HACK|FIXME|BUG|TODO)\\b)",
188
+ captures: {
189
+ "1": {
190
+ name: "keyword.codetag.notation.python"
191
+ }
192
+ }
193
+ },
194
+ "regexp-expression": {
195
+ patterns: [
196
+ {
197
+ include: "#regexp-base-expression"
198
+ },
199
+ {
200
+ include: "#regexp-character-set"
201
+ },
202
+ {
203
+ include: "#regexp-comments"
204
+ },
205
+ {
206
+ include: "#regexp-flags"
207
+ },
208
+ {
209
+ include: "#regexp-named-group"
210
+ },
211
+ {
212
+ include: "#regexp-backreference"
213
+ },
214
+ {
215
+ include: "#regexp-lookahead"
216
+ },
217
+ {
218
+ include: "#regexp-lookahead-negative"
219
+ },
220
+ {
221
+ include: "#regexp-lookbehind"
222
+ },
223
+ {
224
+ include: "#regexp-lookbehind-negative"
225
+ },
226
+ {
227
+ include: "#regexp-conditional"
228
+ },
229
+ {
230
+ include: "#regexp-parentheses-non-capturing"
231
+ },
232
+ {
233
+ include: "#regexp-parentheses"
234
+ }
235
+ ]
236
+ },
237
+ "regexp-character-set": {
238
+ patterns: [
239
+ {
240
+ match: "(?x)\n \\[ \\^? \\] (?! .*?\\])\n"
241
+ },
242
+ {
243
+ name: "meta.character.set.regexp",
244
+ begin: "(\\[)(\\^)?(\\])?",
245
+ end: "(\\])",
246
+ beginCaptures: {
247
+ "1": {
248
+ name: "punctuation.character.set.begin.regexp constant.other.set.regexp"
249
+ },
250
+ "2": {
251
+ name: "keyword.operator.negation.regexp"
252
+ },
253
+ "3": {
254
+ name: "constant.character.set.regexp"
255
+ }
256
+ },
257
+ endCaptures: {
258
+ "1": {
259
+ name: "punctuation.character.set.end.regexp constant.other.set.regexp"
260
+ },
261
+ "2": {
262
+ name: "invalid.illegal.newline.python"
263
+ }
264
+ },
265
+ patterns: [
266
+ {
267
+ include: "#regexp-charecter-set-escapes"
268
+ },
269
+ {
270
+ name: "constant.character.set.regexp",
271
+ match: "[^\\n]"
272
+ }
273
+ ]
274
+ }
275
+ ]
276
+ },
277
+ "regexp-named-group": {
278
+ name: "meta.named.regexp",
279
+ begin: "(?x)\n (\\() (\\?P <\\w+(?:\\s+[[:alnum:]]+)?>)\n",
280
+ end: "(\\))",
281
+ beginCaptures: {
282
+ "1": {
283
+ name: "support.other.parenthesis.regexp punctuation.parenthesis.named.begin.regexp"
284
+ },
285
+ "2": {
286
+ name: "entity.name.tag.named.group.regexp"
287
+ }
288
+ },
289
+ endCaptures: {
290
+ "1": {
291
+ name: "support.other.parenthesis.regexp punctuation.parenthesis.named.end.regexp"
292
+ },
293
+ "2": {
294
+ name: "invalid.illegal.newline.python"
295
+ }
296
+ },
297
+ patterns: [
298
+ {
299
+ include: "#regexp-expression"
300
+ }
301
+ ]
302
+ },
303
+ "regexp-comments": {
304
+ name: "comment.regexp",
305
+ begin: "\\(\\?#",
306
+ end: "(\\))",
307
+ beginCaptures: {
308
+ "0": {
309
+ name: "punctuation.comment.begin.regexp"
310
+ }
311
+ },
312
+ endCaptures: {
313
+ "1": {
314
+ name: "punctuation.comment.end.regexp"
315
+ },
316
+ "2": {
317
+ name: "invalid.illegal.newline.python"
318
+ }
319
+ },
320
+ patterns: [
321
+ {
322
+ include: "#codetags"
323
+ }
324
+ ]
325
+ },
326
+ "regexp-lookahead": {
327
+ begin: "(\\()\\?=",
328
+ end: "(\\))",
329
+ beginCaptures: {
330
+ "0": {
331
+ name: "keyword.operator.lookahead.regexp"
332
+ },
333
+ "1": {
334
+ name: "punctuation.parenthesis.lookahead.begin.regexp"
335
+ }
336
+ },
337
+ endCaptures: {
338
+ "1": {
339
+ name: "keyword.operator.lookahead.regexp punctuation.parenthesis.lookahead.end.regexp"
340
+ },
341
+ "2": {
342
+ name: "invalid.illegal.newline.python"
343
+ }
344
+ },
345
+ patterns: [
346
+ {
347
+ include: "#regexp-expression"
348
+ }
349
+ ]
350
+ },
351
+ "regexp-lookahead-negative": {
352
+ begin: "(\\()\\?!",
353
+ end: "(\\))",
354
+ beginCaptures: {
355
+ "0": {
356
+ name: "keyword.operator.lookahead.negative.regexp"
357
+ },
358
+ "1": {
359
+ name: "punctuation.parenthesis.lookahead.begin.regexp"
360
+ }
361
+ },
362
+ endCaptures: {
363
+ "1": {
364
+ name: "keyword.operator.lookahead.negative.regexp punctuation.parenthesis.lookahead.end.regexp"
365
+ },
366
+ "2": {
367
+ name: "invalid.illegal.newline.python"
368
+ }
369
+ },
370
+ patterns: [
371
+ {
372
+ include: "#regexp-expression"
373
+ }
374
+ ]
375
+ },
376
+ "regexp-lookbehind": {
377
+ begin: "(\\()\\?<=",
378
+ end: "(\\))",
379
+ beginCaptures: {
380
+ "0": {
381
+ name: "keyword.operator.lookbehind.regexp"
382
+ },
383
+ "1": {
384
+ name: "punctuation.parenthesis.lookbehind.begin.regexp"
385
+ }
386
+ },
387
+ endCaptures: {
388
+ "1": {
389
+ name: "keyword.operator.lookbehind.regexp punctuation.parenthesis.lookbehind.end.regexp"
390
+ },
391
+ "2": {
392
+ name: "invalid.illegal.newline.python"
393
+ }
394
+ },
395
+ patterns: [
396
+ {
397
+ include: "#regexp-expression"
398
+ }
399
+ ]
400
+ },
401
+ "regexp-lookbehind-negative": {
402
+ begin: "(\\()\\?<!",
403
+ end: "(\\))",
404
+ beginCaptures: {
405
+ "0": {
406
+ name: "keyword.operator.lookbehind.negative.regexp"
407
+ },
408
+ "1": {
409
+ name: "punctuation.parenthesis.lookbehind.begin.regexp"
410
+ }
411
+ },
412
+ endCaptures: {
413
+ "1": {
414
+ name: "keyword.operator.lookbehind.negative.regexp punctuation.parenthesis.lookbehind.end.regexp"
415
+ },
416
+ "2": {
417
+ name: "invalid.illegal.newline.python"
418
+ }
419
+ },
420
+ patterns: [
421
+ {
422
+ include: "#regexp-expression"
423
+ }
424
+ ]
425
+ },
426
+ "regexp-conditional": {
427
+ begin: "(\\()\\?\\((\\w+(?:\\s+[[:alnum:]]+)?|\\d+)\\)",
428
+ end: "(\\))",
429
+ beginCaptures: {
430
+ "0": {
431
+ name: "keyword.operator.conditional.regexp"
432
+ },
433
+ "1": {
434
+ name: "punctuation.parenthesis.conditional.begin.regexp"
435
+ }
436
+ },
437
+ endCaptures: {
438
+ "1": {
439
+ name: "keyword.operator.conditional.negative.regexp punctuation.parenthesis.conditional.end.regexp"
440
+ },
441
+ "2": {
442
+ name: "invalid.illegal.newline.python"
443
+ }
444
+ },
445
+ patterns: [
446
+ {
447
+ include: "#regexp-expression"
448
+ }
449
+ ]
450
+ },
451
+ "regexp-parentheses-non-capturing": {
452
+ begin: "\\(\\?:",
453
+ end: "(\\))",
454
+ beginCaptures: {
455
+ "0": {
456
+ name: "support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.begin.regexp"
457
+ }
458
+ },
459
+ endCaptures: {
460
+ "1": {
461
+ name: "support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.end.regexp"
462
+ },
463
+ "2": {
464
+ name: "invalid.illegal.newline.python"
465
+ }
466
+ },
467
+ patterns: [
468
+ {
469
+ include: "#regexp-expression"
470
+ }
471
+ ]
472
+ },
473
+ "regexp-parentheses": {
474
+ begin: "\\(",
475
+ end: "(\\))",
476
+ beginCaptures: {
477
+ "0": {
478
+ name: "support.other.parenthesis.regexp punctuation.parenthesis.begin.regexp"
479
+ }
480
+ },
481
+ endCaptures: {
482
+ "1": {
483
+ name: "support.other.parenthesis.regexp punctuation.parenthesis.end.regexp"
484
+ },
485
+ "2": {
486
+ name: "invalid.illegal.newline.python"
487
+ }
488
+ },
489
+ patterns: [
490
+ {
491
+ include: "#regexp-expression"
492
+ }
493
+ ]
494
+ }
495
+ };
496
+ var MagicRegExp_tmLanguage = {
497
+ information_for_contributors: information_for_contributors,
498
+ version: version,
499
+ name: name,
500
+ scopeName: scopeName,
501
+ patterns: patterns,
502
+ repository: repository
503
+ };
504
+
505
+ export { MagicRegExp_tmLanguage as default, information_for_contributors, name, patterns, repository, scopeName, version };
@@ -0,0 +1,166 @@
1
+ var fileTypes = [
2
+ ];
3
+ var hideFromUser = true;
4
+ var name = "Regular Expressions (JavaScript)";
5
+ var patterns = [
6
+ {
7
+ include: "#regexp"
8
+ }
9
+ ];
10
+ var repository = {
11
+ "regex-character-class": {
12
+ patterns: [
13
+ {
14
+ match: "\\\\[wWsSdD]|\\.",
15
+ name: "constant.character.character-class.regexp"
16
+ },
17
+ {
18
+ match: "\\\\([0-7]{3}|x\\h\\h|u\\h\\h\\h\\h)",
19
+ name: "constant.character.numeric.regexp"
20
+ },
21
+ {
22
+ match: "\\\\c[A-Z]",
23
+ name: "constant.character.control.regexp"
24
+ },
25
+ {
26
+ match: "\\\\.",
27
+ name: "constant.character.escape.backslash.regexp"
28
+ }
29
+ ]
30
+ },
31
+ regexp: {
32
+ patterns: [
33
+ {
34
+ match: "\\\\[bB]|\\^|\\$",
35
+ name: "keyword.control.anchor.regexp"
36
+ },
37
+ {
38
+ match: "\\\\[1-9]\\d*",
39
+ name: "keyword.other.back-reference.regexp"
40
+ },
41
+ {
42
+ match: "[?+*]|\\{(\\d+,\\d+|\\d+,|,\\d+|\\d+)\\}\\??",
43
+ name: "keyword.operator.quantifier.regexp"
44
+ },
45
+ {
46
+ match: "\\|",
47
+ name: "keyword.operator.or.regexp"
48
+ },
49
+ {
50
+ begin: "(\\()((\\?=)|(\\?!))",
51
+ beginCaptures: {
52
+ "1": {
53
+ name: "punctuation.definition.group.regexp"
54
+ },
55
+ "3": {
56
+ name: "meta.assertion.look-ahead.regexp"
57
+ },
58
+ "4": {
59
+ name: "meta.assertion.negative-look-ahead.regexp"
60
+ }
61
+ },
62
+ end: "(\\))",
63
+ endCaptures: {
64
+ "1": {
65
+ name: "punctuation.definition.group.regexp"
66
+ }
67
+ },
68
+ name: "meta.group.assertion.regexp",
69
+ patterns: [
70
+ {
71
+ include: "#regexp"
72
+ }
73
+ ]
74
+ },
75
+ {
76
+ begin: "\\((\\?:)?",
77
+ beginCaptures: {
78
+ "0": {
79
+ name: "punctuation.definition.group.regexp"
80
+ }
81
+ },
82
+ end: "\\)",
83
+ endCaptures: {
84
+ "0": {
85
+ name: "punctuation.definition.group.regexp"
86
+ }
87
+ },
88
+ name: "meta.group.regexp",
89
+ patterns: [
90
+ {
91
+ include: "#regexp"
92
+ }
93
+ ]
94
+ },
95
+ {
96
+ begin: "(\\[)(\\^)?",
97
+ beginCaptures: {
98
+ "1": {
99
+ name: "punctuation.definition.character-class.regexp"
100
+ },
101
+ "2": {
102
+ name: "keyword.operator.negation.regexp"
103
+ }
104
+ },
105
+ end: "(\\])",
106
+ endCaptures: {
107
+ "1": {
108
+ name: "punctuation.definition.character-class.regexp"
109
+ }
110
+ },
111
+ name: "constant.other.character-class.set.regexp",
112
+ patterns: [
113
+ {
114
+ captures: {
115
+ "1": {
116
+ name: "constant.character.numeric.regexp"
117
+ },
118
+ "2": {
119
+ name: "constant.character.control.regexp"
120
+ },
121
+ "3": {
122
+ name: "constant.character.escape.backslash.regexp"
123
+ },
124
+ "4": {
125
+ name: "constant.character.numeric.regexp"
126
+ },
127
+ "5": {
128
+ name: "constant.character.control.regexp"
129
+ },
130
+ "6": {
131
+ name: "constant.character.escape.backslash.regexp"
132
+ }
133
+ },
134
+ match: "(?:.|(\\\\(?:[0-7]{3}|x\\h\\h|u\\h\\h\\h\\h))|(\\\\c[A-Z])|(\\\\.))\\-(?:[^\\]\\\\]|(\\\\(?:[0-7]{3}|x\\h\\h|u\\h\\h\\h\\h))|(\\\\c[A-Z])|(\\\\.))",
135
+ name: "constant.other.character-class.range.regexp"
136
+ },
137
+ {
138
+ include: "#regex-character-class"
139
+ }
140
+ ]
141
+ },
142
+ {
143
+ include: "#regex-character-class"
144
+ }
145
+ ]
146
+ }
147
+ };
148
+ var scopeName = "source.js.regexp";
149
+ var uuid = "AC8679DE-3AC7-4056-84F9-69A7ADC29DDD";
150
+ var information_for_contributors = [
151
+ "This file has been converted from https://github.com/microsoft/vscode/blob/master/extensions/javascript/",
152
+ "If you want to provide a fix or improvement, please create a pull request against the original repository.",
153
+ "Once accepted there, we are happy to receive an update request."
154
+ ];
155
+ var Regular_Expressions__JavaScript__tmLanguage = {
156
+ fileTypes: fileTypes,
157
+ hideFromUser: hideFromUser,
158
+ name: name,
159
+ patterns: patterns,
160
+ repository: repository,
161
+ scopeName: scopeName,
162
+ uuid: uuid,
163
+ information_for_contributors: information_for_contributors
164
+ };
165
+
166
+ export { Regular_Expressions__JavaScript__tmLanguage as default, fileTypes, hideFromUser, information_for_contributors, name, patterns, repository, scopeName, uuid };