@codingame/monaco-languageclient-wrapper 1.0.6 → 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.
- package/dist/BSV.tmLanguage.js +299 -0
- package/dist/COBOL Copybook.js +2017 -0
- package/dist/COBOL.js +2017 -0
- package/dist/COBOL.tmLanguage.js +149 -0
- package/dist/CodinGameMonacoWorkspace.d.ts +13 -0
- package/dist/Configuration.d.ts +15 -0
- package/dist/Erlang.plist.js +1752 -0
- package/dist/JSON.tmLanguage.js +221 -0
- package/dist/JSONC.tmLanguage.js +221 -0
- package/dist/JavaScript.tmLanguage.js +5894 -0
- package/dist/Kotlin.tmLanguage.js +724 -0
- package/dist/MagicPython.tmLanguage.js +5340 -0
- package/dist/MagicRegExp.tmLanguage.js +505 -0
- package/dist/Regular Expressions (JavaScript).tmLanguage.js +166 -0
- package/dist/SQL.plist.js +482 -0
- package/dist/Scala.tmLanguage.js +1255 -0
- package/dist/TypeScript.tmLanguage.js +5641 -0
- package/dist/WatchableConsoleWindow.d.ts +22 -0
- package/dist/_rollupPluginBabelHelpers.js +54 -0
- package/dist/asp-vb-net.tmlanguage.js +247 -0
- package/dist/bsv.js +49 -0
- package/dist/c.js +18 -0
- package/dist/c.tmLanguage.js +3347 -0
- package/dist/cabal.tmLanguage.js +66 -0
- package/dist/clojure.tmLanguage.js +443 -0
- package/dist/codeblock-cabal.js +42 -0
- package/dist/codeblock-haskell.js +42 -0
- package/dist/codeblock-literate-haskell.js +42 -0
- package/dist/codeblock.js +36 -0
- package/dist/codeblock2.js +95 -0
- package/dist/coffeescript.js +18 -0
- package/dist/coffeescript.tmLanguage.js +1324 -0
- package/dist/configuration/index.d.ts +5 -0
- package/dist/cpp.js +18 -0
- package/dist/cpp.tmLanguage.js +19996 -0
- package/dist/createLanguageClient.d.ts +2 -2
- package/dist/csharp.js +18 -0
- package/dist/csharp.tmLanguage.js +4750 -0
- package/dist/css.tmLanguage.js +1873 -0
- package/dist/css.worker.js +6 -0
- package/dist/cssContribution.js +10 -0
- package/dist/cuda-cpp.tmLanguage.js +19993 -0
- package/dist/d.js +3159 -0
- package/dist/dart.js +530 -0
- package/dist/diet.js +758 -0
- package/dist/diet2.js +92 -0
- package/dist/dml.js +169 -0
- package/dist/eex.js +55 -0
- package/dist/elixir.js +2341 -0
- package/dist/elixir2.js +184 -0
- package/dist/erlang.js +195 -0
- package/dist/expression.js +846 -0
- package/dist/extensions/autofold.d.ts +2 -0
- package/dist/extensions/cobol.d.ts +2 -0
- package/dist/extensions/index.d.ts +2 -0
- package/dist/features/cssContribution.d.ts +1 -0
- package/dist/features/htmlContribution.d.ts +1 -0
- package/dist/features/jsonContribution.d.ts +1 -0
- package/dist/features/typescriptContribution.d.ts +1 -0
- package/dist/fsharp.js +18 -0
- package/dist/fsharp.tmLanguage.js +1811 -0
- package/dist/go.tmLanguage.js +1025 -0
- package/dist/groovy.js +229 -0
- package/dist/groovy.tmLanguage.js +1391 -0
- package/dist/hacks.d.ts +1 -0
- package/dist/haskell.tmLanguage.js +629 -0
- package/dist/html (eex).js +31 -0
- package/dist/html-derivative.tmLanguage.js +57 -0
- package/dist/html.tmLanguage.js +2652 -0
- package/dist/html.tmLanguage2.js +97 -0
- package/dist/html.worker.js +6 -0
- package/dist/htmlContribution.js +10 -0
- package/dist/index.d.ts +3 -2
- package/dist/inline-styles.js +104 -0
- package/dist/inline-template.js +88 -0
- package/dist/java.js +18 -0
- package/dist/java.tmLanguage.js +1863 -0
- package/dist/javascript.js +196 -0
- package/dist/javascriptreact.js +196 -0
- package/dist/jsdoc.js.injection.tmLanguage.js +32 -0
- package/dist/jsdoc.ts.injection.tmLanguage.js +32 -0
- package/dist/json.worker.js +6 -0
- package/dist/jsonContribution.js +78 -0
- package/dist/keybindings/index.d.ts +2 -0
- package/dist/keybindings/keybindingHelper.d.ts +2 -0
- package/dist/keybindings/vim.d.ts +3 -0
- package/dist/kotlin.js +117 -0
- package/dist/kotlinscript.js +117 -0
- package/dist/languageClient.d.ts +8 -14
- package/dist/languages/extensions/grammarLoader.d.ts +91037 -0
- package/dist/languages/extensions/snippetLoader.d.ts +4578 -0
- package/dist/languages/index.d.ts +3 -0
- package/dist/languages/monarch/index.d.ts +7 -0
- package/dist/languages/monarch/list.d.ts +7 -0
- package/dist/languages/monarch/stub-generator.d.ts +2 -0
- package/dist/languages/snippets/index.d.ts +1 -0
- package/dist/languages/textMate/CGTMGrammarFactory.d.ts +5 -0
- package/dist/languages/textMate/TextMateTokensProvider.d.ts +11 -0
- package/dist/languages/textMate/index.d.ts +2 -0
- package/dist/literateHaskell.tmLanguage.js +70 -0
- package/dist/lua.tmLanguage.js +289 -0
- package/dist/main.js +627 -326
- package/dist/markdown.js +103 -0
- package/dist/markdown.tmLanguage.js +2784 -0
- package/dist/merlin.js +111 -0
- package/dist/monaco.d.ts +8 -0
- package/dist/objective-c.tmLanguage.js +3618 -0
- package/dist/ocaml-hover-info.js +34 -0
- package/dist/ocaml-hover-type.js +24 -0
- package/dist/ocaml-markdown-codeblock.js +42 -0
- package/dist/ocaml.js +2979 -0
- package/dist/ocamlbuild.js +239 -0
- package/dist/opam.js +149 -0
- package/dist/pascal.js +382 -0
- package/dist/pascal.tmLanguage.js +169 -0
- package/dist/perl.tmLanguage.js +2986 -0
- package/dist/perl6.tmLanguage.js +323 -0
- package/dist/pgsql.tmLanguage.js +284 -0
- package/dist/php.js +265 -0
- package/dist/php.tmLanguage.js +3791 -0
- package/dist/platform.tmLanguage.js +1135 -0
- package/dist/powershell.js +18 -0
- package/dist/powershell.tmLanguage.js +1037 -0
- package/dist/r.tmLanguage.js +551 -0
- package/dist/reason-hover-info.js +34 -0
- package/dist/reason-hover-signature.js +21 -0
- package/dist/reason-hover-type.js +21 -0
- package/dist/reason-markdown-codeblock.js +42 -0
- package/dist/reason.js +100 -0
- package/dist/ruby.tmLanguage.js +2784 -0
- package/dist/rust.tmLanguage.js +1178 -0
- package/dist/sassdoc.tmLanguage.js +362 -0
- package/dist/scss.tmLanguage.js +1887 -0
- package/dist/sdc.tmLanguage.js +712 -0
- package/dist/sdl.js +162 -0
- package/dist/services/Configuration.d.ts +2 -3
- package/dist/services/EditorModelResolverService.d.ts +8 -0
- package/dist/services/MultiEditorStandaloneCodeEditorService.d.ts +7 -0
- package/dist/services/WatchableConsoleWindow.d.ts +2 -0
- package/dist/services.d.ts +1 -2
- package/dist/shell-unix-bash.tmLanguage.js +1291 -0
- package/dist/sql.js +21 -0
- package/dist/staticOptions.d.ts +9 -0
- package/dist/stub-generator.js +15 -0
- package/dist/swift.js +183 -0
- package/dist/swift.tmLanguage.js +3288 -0
- package/dist/systemverilog.js +208 -0
- package/dist/systemverilog.tmLanguage.js +1067 -0
- package/dist/tcl.js +151 -0
- package/dist/tcl.tmlanguage.yaml.js +5484 -0
- package/dist/template.js +207 -0
- package/dist/theme/index.d.ts +3 -0
- package/dist/theme/registry.d.ts +4 -0
- package/dist/theme/semanticHighlight.d.ts +1 -0
- package/dist/theme/tools.d.ts +13 -0
- package/dist/tools.d.ts +3 -0
- package/dist/ts.worker.js +6 -0
- package/dist/typescript.js +312 -0
- package/dist/typescriptContribution.js +36 -0
- package/dist/typescriptreact.js +312 -0
- package/dist/ucf.tmLanguage.js +36 -0
- package/dist/vb.js +88 -0
- package/dist/verilog.js +432 -0
- package/dist/verilog.tmLanguage.js +321 -0
- package/dist/worker.d.ts +6 -0
- package/dist/worker.js +54 -0
- package/dist/xml.tmLanguage.js +395 -0
- package/dist/xsl.tmLanguage.js +102 -0
- package/dist/yaml.tmLanguage.js +629 -0
- package/package.json +21 -21
- 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 };
|