tm-grammars 1.11.3 → 1.12.1
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/NOTICE +27 -0
- package/README.md +2 -1
- package/grammars/angular-template-blocks.json +1 -1
- package/grammars/regexp.json +495 -0
- package/index.js +18 -4
- package/package.json +1 -1
package/NOTICE
CHANGED
|
@@ -7193,6 +7193,33 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
7193
7193
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
7194
7194
|
SOFTWARE.
|
|
7195
7195
|
|
|
7196
|
+
=========================================================================================================
|
|
7197
|
+
Files: regexp.json
|
|
7198
|
+
License: https://raw.githubusercontent.com/MagicStack/MagicPython/master/LICENSE
|
|
7199
|
+
SPDX: MIT
|
|
7200
|
+
---------------------------------------------------------------------------------------------------------
|
|
7201
|
+
The MIT License
|
|
7202
|
+
|
|
7203
|
+
Copyright (c) 2015-present MagicStack Inc. http://magic.io
|
|
7204
|
+
|
|
7205
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7206
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7207
|
+
in the Software without restriction, including without limitation the rights
|
|
7208
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7209
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
7210
|
+
furnished to do so, subject to the following conditions:
|
|
7211
|
+
|
|
7212
|
+
The above copyright notice and this permission notice shall be included in
|
|
7213
|
+
all copies or substantial portions of the Software.
|
|
7214
|
+
|
|
7215
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
7216
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
7217
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
7218
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
7219
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
7220
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
7221
|
+
THE SOFTWARE.
|
|
7222
|
+
|
|
7196
7223
|
=========================================================================================================
|
|
7197
7224
|
Files: riscv.json
|
|
7198
7225
|
License: https://raw.githubusercontent.com/zhuanhao-wu/vscode-riscv-support/master/LICENSE
|
package/README.md
CHANGED
|
@@ -167,6 +167,7 @@ import { grammars } from 'tm-grammars'
|
|
|
167
167
|
| `raku` | `perl6` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/8fdf170a0850c1cc027382f31650aaf300d3ae2a/extensions/perl/syntaxes/perl6.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 10.05 kB |
|
|
168
168
|
| `razor` | | [dotnet/razor](https://github.com/dotnet/razor/blob/39159764277f3c80a786d8872eba7730da3d7ef0/src/Razor/src/Microsoft.VisualStudio.RazorExtension/EmbeddedGrammars/aspnetcorerazor.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/dotnet/razor/main/LICENSE.txt) | `html` `csharp` | 24.50 kB |
|
|
169
169
|
| `reg` | | [mihai-vlc/reg-vscode](https://github.com/mihai-vlc/reg-vscode/blob/896096fc6756329d82c71a913663a1c0ac678f74/syntaxes/reg.tmLanguage) | [MIT](https://raw.githubusercontent.com/mihai-vlc/reg-vscode/master/LICENSE) | | 2.20 kB |
|
|
170
|
+
| `regexp` | `regex` | [MagicStack/MagicPython](https://github.com/MagicStack/MagicPython/blob/c9b3409deb69acec31bbf7913830e93a046b30cc/grammars/MagicRegExp.tmLanguage) | [MIT](https://raw.githubusercontent.com/MagicStack/MagicPython/master/LICENSE) | | 7.71 kB |
|
|
170
171
|
| `rel` | | [relationalai-oss/rel_vscode](https://github.com/relationalai-oss/rel_vscode/blob/63dda4dee48c67b037357f47b562185484555ea9/syntaxes/rel.tmLanguage.json) | | | 3.18 kB |
|
|
171
172
|
| `riscv` | | [zhuanhao-wu/vscode-riscv-support](https://github.com/zhuanhao-wu/vscode-riscv-support/blob/2736b60e45ff2ef738d784055e136cf38d6290cd/syntaxes/riscv.tmLanguage) | [MIT](https://raw.githubusercontent.com/zhuanhao-wu/vscode-riscv-support/master/LICENSE) | | 7.04 kB |
|
|
172
173
|
| `rst` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/48e93f756b764991ede33ad09781a863aca6907a/extensions/restructuredtext/syntaxes/rst.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `html-derivative` `cpp` `python` `javascript` `shellscript` `yaml` `cmake` `ruby` | 9.03 kB |
|
|
@@ -235,7 +236,7 @@ Injections are grammars that are embedded in other grammars. They are used to ag
|
|
|
235
236
|
| `angular-inline-style` | | [angular/vscode-ng-language-service](https://github.com/angular/vscode-ng-language-service/blob/f0422f5f571f79a904510944452f06fb36beff22/syntaxes/inline-styles.json) | [MIT](https://raw.githubusercontent.com/angular/vscode-ng-language-service/main/LICENSE) | `scss` | 1.17 kB |
|
|
236
237
|
| `angular-inline-template` | | [angular/vscode-ng-language-service](https://github.com/angular/vscode-ng-language-service/blob/c3f3172a70b1a2bfdca3bdee85df9271cb0895cf/syntaxes/inline-template.json) | [MIT](https://raw.githubusercontent.com/angular/vscode-ng-language-service/main/LICENSE) | `angular-html` `angular-template` | 956.00 B |
|
|
237
238
|
| `angular-template` | | [angular/vscode-ng-language-service](https://github.com/angular/vscode-ng-language-service/blob/28739e438742bee69faceda5fd15445682451397/syntaxes/template.json) | [MIT](https://raw.githubusercontent.com/angular/vscode-ng-language-service/main/LICENSE) | `angular-expression` | 471.00 B |
|
|
238
|
-
| `angular-template-blocks` | | [angular/vscode-ng-language-service](https://github.com/angular/vscode-ng-language-service/blob/
|
|
239
|
+
| `angular-template-blocks` | | [angular/vscode-ng-language-service](https://github.com/angular/vscode-ng-language-service/blob/dceedb686d45f19a65a50398be3dbce2526e7d11/syntaxes/template-blocks.json) | [MIT](https://raw.githubusercontent.com/angular/vscode-ng-language-service/main/LICENSE) | `angular-expression` `angular-template` | 1.18 kB |
|
|
239
240
|
| `cpp-macro` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/6ac83c7c7dda9f27ca1fe9d98675253e010b75d1/extensions/cpp/syntaxes/cpp.embedded.macro.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `glsl` `sql` | 230.05 kB |
|
|
240
241
|
| `jinja-html` | | [samuelcolvin/jinjahtml-vscode](https://github.com/samuelcolvin/jinjahtml-vscode/blob/64ad369cd167bba2e614944db6d925b7dc6483b4/syntaxes/jinja-html.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/samuelcolvin/jinjahtml-vscode/main/LICENSE) | `html` | 470.00 B |
|
|
241
242
|
| `markdown-vue` | | [vuejs/language-tools](https://github.com/vuejs/language-tools/blob/ce5623e52a31c99797052727a817d422266f210d/extensions/vscode/syntaxes/markdown-vue.json) | [MIT](https://raw.githubusercontent.com/vuejs/language-tools/master/LICENSE) | | 670.00 B |
|
|
@@ -0,0 +1,495 @@
|
|
|
1
|
+
{
|
|
2
|
+
"displayName": "RegExp",
|
|
3
|
+
"fileTypes": [
|
|
4
|
+
"re"
|
|
5
|
+
],
|
|
6
|
+
"name": "regexp",
|
|
7
|
+
"patterns": [
|
|
8
|
+
{
|
|
9
|
+
"include": "#regexp-expression"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"repository": {
|
|
13
|
+
"codetags": {
|
|
14
|
+
"captures": {
|
|
15
|
+
"1": {
|
|
16
|
+
"name": "keyword.codetag.notation.python"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"match": "(?:\\b(NOTE|XXX|HACK|FIXME|BUG|TODO)\\b)"
|
|
20
|
+
},
|
|
21
|
+
"fregexp-base-expression": {
|
|
22
|
+
"patterns": [
|
|
23
|
+
{
|
|
24
|
+
"include": "#fregexp-quantifier"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"include": "#fstring-formatting-braces"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"match": "\\{.*?\\}"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"include": "#regexp-base-common"
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
"fregexp-quantifier": {
|
|
38
|
+
"match": "(?x)\n\\{\\{(\n\\d+ | \\d+,(\\d+)? | ,\\d+\n)\\}\\}\n",
|
|
39
|
+
"name": "keyword.operator.quantifier.regexp"
|
|
40
|
+
},
|
|
41
|
+
"fstring-formatting-braces": {
|
|
42
|
+
"patterns": [
|
|
43
|
+
{
|
|
44
|
+
"captures": {
|
|
45
|
+
"1": {
|
|
46
|
+
"name": "constant.character.format.placeholder.other.python"
|
|
47
|
+
},
|
|
48
|
+
"2": {
|
|
49
|
+
"name": "invalid.illegal.brace.python"
|
|
50
|
+
},
|
|
51
|
+
"3": {
|
|
52
|
+
"name": "constant.character.format.placeholder.other.python"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"comment": "empty braces are illegal",
|
|
56
|
+
"match": "({)(\\s*?)(})"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"match": "({{|}})",
|
|
60
|
+
"name": "constant.character.escape.python"
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
"regexp-backreference": {
|
|
65
|
+
"captures": {
|
|
66
|
+
"1": {
|
|
67
|
+
"name": "support.other.parenthesis.regexp punctuation.parenthesis.backreference.named.begin.regexp"
|
|
68
|
+
},
|
|
69
|
+
"2": {
|
|
70
|
+
"name": "entity.name.tag.named.backreference.regexp"
|
|
71
|
+
},
|
|
72
|
+
"3": {
|
|
73
|
+
"name": "support.other.parenthesis.regexp punctuation.parenthesis.backreference.named.end.regexp"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"match": "(?x)\n(\\() (\\?P= \\w+(?:\\s+[[:alnum:]]+)?) (\\))\n",
|
|
77
|
+
"name": "meta.backreference.named.regexp"
|
|
78
|
+
},
|
|
79
|
+
"regexp-backreference-number": {
|
|
80
|
+
"captures": {
|
|
81
|
+
"1": {
|
|
82
|
+
"name": "entity.name.tag.backreference.regexp"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"match": "(\\\\[1-9]\\d?)",
|
|
86
|
+
"name": "meta.backreference.regexp"
|
|
87
|
+
},
|
|
88
|
+
"regexp-base-common": {
|
|
89
|
+
"patterns": [
|
|
90
|
+
{
|
|
91
|
+
"match": "\\.",
|
|
92
|
+
"name": "support.other.match.any.regexp"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"match": "\\^",
|
|
96
|
+
"name": "support.other.match.begin.regexp"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"match": "\\$",
|
|
100
|
+
"name": "support.other.match.end.regexp"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"match": "[+*?]\\??",
|
|
104
|
+
"name": "keyword.operator.quantifier.regexp"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"match": "\\|",
|
|
108
|
+
"name": "keyword.operator.disjunction.regexp"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"include": "#regexp-escape-sequence"
|
|
112
|
+
}
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
"regexp-base-expression": {
|
|
116
|
+
"patterns": [
|
|
117
|
+
{
|
|
118
|
+
"include": "#regexp-quantifier"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"include": "#regexp-base-common"
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
},
|
|
125
|
+
"regexp-character-set": {
|
|
126
|
+
"patterns": [
|
|
127
|
+
{
|
|
128
|
+
"match": "(?x)\n\\[ \\^? \\] (?! .*?\\])\n"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"begin": "(\\[)(\\^)?(\\])?",
|
|
132
|
+
"beginCaptures": {
|
|
133
|
+
"1": {
|
|
134
|
+
"name": "punctuation.character.set.begin.regexp constant.other.set.regexp"
|
|
135
|
+
},
|
|
136
|
+
"2": {
|
|
137
|
+
"name": "keyword.operator.negation.regexp"
|
|
138
|
+
},
|
|
139
|
+
"3": {
|
|
140
|
+
"name": "constant.character.set.regexp"
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"end": "(\\])",
|
|
144
|
+
"endCaptures": {
|
|
145
|
+
"1": {
|
|
146
|
+
"name": "punctuation.character.set.end.regexp constant.other.set.regexp"
|
|
147
|
+
},
|
|
148
|
+
"2": {
|
|
149
|
+
"name": "invalid.illegal.newline.python"
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"name": "meta.character.set.regexp",
|
|
153
|
+
"patterns": [
|
|
154
|
+
{
|
|
155
|
+
"include": "#regexp-charecter-set-escapes"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"match": "[^\\n]",
|
|
159
|
+
"name": "constant.character.set.regexp"
|
|
160
|
+
}
|
|
161
|
+
]
|
|
162
|
+
}
|
|
163
|
+
]
|
|
164
|
+
},
|
|
165
|
+
"regexp-charecter-set-escapes": {
|
|
166
|
+
"patterns": [
|
|
167
|
+
{
|
|
168
|
+
"match": "\\\\[abfnrtv\\\\]",
|
|
169
|
+
"name": "constant.character.escape.regexp"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"include": "#regexp-escape-special"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"match": "\\\\([0-7]{1,3})",
|
|
176
|
+
"name": "constant.character.escape.regexp"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"include": "#regexp-escape-character"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"include": "#regexp-escape-unicode"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"include": "#regexp-escape-catchall"
|
|
186
|
+
}
|
|
187
|
+
]
|
|
188
|
+
},
|
|
189
|
+
"regexp-comments": {
|
|
190
|
+
"begin": "\\(\\?#",
|
|
191
|
+
"beginCaptures": {
|
|
192
|
+
"0": {
|
|
193
|
+
"name": "punctuation.comment.begin.regexp"
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"end": "(\\))",
|
|
197
|
+
"endCaptures": {
|
|
198
|
+
"1": {
|
|
199
|
+
"name": "punctuation.comment.end.regexp"
|
|
200
|
+
},
|
|
201
|
+
"2": {
|
|
202
|
+
"name": "invalid.illegal.newline.python"
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
"name": "comment.regexp",
|
|
206
|
+
"patterns": [
|
|
207
|
+
{
|
|
208
|
+
"include": "#codetags"
|
|
209
|
+
}
|
|
210
|
+
]
|
|
211
|
+
},
|
|
212
|
+
"regexp-conditional": {
|
|
213
|
+
"begin": "(\\()\\?\\((\\w+(?:\\s+[[:alnum:]]+)?|\\d+)\\)",
|
|
214
|
+
"beginCaptures": {
|
|
215
|
+
"0": {
|
|
216
|
+
"name": "keyword.operator.conditional.regexp"
|
|
217
|
+
},
|
|
218
|
+
"1": {
|
|
219
|
+
"name": "punctuation.parenthesis.conditional.begin.regexp"
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
"end": "(\\))",
|
|
223
|
+
"endCaptures": {
|
|
224
|
+
"1": {
|
|
225
|
+
"name": "keyword.operator.conditional.negative.regexp punctuation.parenthesis.conditional.end.regexp"
|
|
226
|
+
},
|
|
227
|
+
"2": {
|
|
228
|
+
"name": "invalid.illegal.newline.python"
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
"patterns": [
|
|
232
|
+
{
|
|
233
|
+
"include": "#regexp-expression"
|
|
234
|
+
}
|
|
235
|
+
]
|
|
236
|
+
},
|
|
237
|
+
"regexp-escape-catchall": {
|
|
238
|
+
"match": "\\\\(.|\\n)",
|
|
239
|
+
"name": "constant.character.escape.regexp"
|
|
240
|
+
},
|
|
241
|
+
"regexp-escape-character": {
|
|
242
|
+
"match": "(?x)\n\\\\ (\nx[0-9A-Fa-f]{2}\n| 0[0-7]{1,2}\n| [0-7]{3}\n)\n",
|
|
243
|
+
"name": "constant.character.escape.regexp"
|
|
244
|
+
},
|
|
245
|
+
"regexp-escape-sequence": {
|
|
246
|
+
"patterns": [
|
|
247
|
+
{
|
|
248
|
+
"include": "#regexp-escape-special"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"include": "#regexp-escape-character"
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"include": "#regexp-escape-unicode"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"include": "#regexp-backreference-number"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"include": "#regexp-escape-catchall"
|
|
261
|
+
}
|
|
262
|
+
]
|
|
263
|
+
},
|
|
264
|
+
"regexp-escape-special": {
|
|
265
|
+
"match": "\\\\([AbBdDsSwWZ])",
|
|
266
|
+
"name": "support.other.escape.special.regexp"
|
|
267
|
+
},
|
|
268
|
+
"regexp-escape-unicode": {
|
|
269
|
+
"match": "(?x)\n\\\\ (\nu[0-9A-Fa-f]{4}\n| U[0-9A-Fa-f]{8}\n)\n",
|
|
270
|
+
"name": "constant.character.unicode.regexp"
|
|
271
|
+
},
|
|
272
|
+
"regexp-expression": {
|
|
273
|
+
"patterns": [
|
|
274
|
+
{
|
|
275
|
+
"include": "#regexp-base-expression"
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"include": "#regexp-character-set"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"include": "#regexp-comments"
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"include": "#regexp-flags"
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"include": "#regexp-named-group"
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"include": "#regexp-backreference"
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"include": "#regexp-lookahead"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"include": "#regexp-lookahead-negative"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"include": "#regexp-lookbehind"
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"include": "#regexp-lookbehind-negative"
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"include": "#regexp-conditional"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"include": "#regexp-parentheses-non-capturing"
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"include": "#regexp-parentheses"
|
|
312
|
+
}
|
|
313
|
+
]
|
|
314
|
+
},
|
|
315
|
+
"regexp-flags": {
|
|
316
|
+
"match": "\\(\\?[aiLmsux]+\\)",
|
|
317
|
+
"name": "storage.modifier.flag.regexp"
|
|
318
|
+
},
|
|
319
|
+
"regexp-lookahead": {
|
|
320
|
+
"begin": "(\\()\\?=",
|
|
321
|
+
"beginCaptures": {
|
|
322
|
+
"0": {
|
|
323
|
+
"name": "keyword.operator.lookahead.regexp"
|
|
324
|
+
},
|
|
325
|
+
"1": {
|
|
326
|
+
"name": "punctuation.parenthesis.lookahead.begin.regexp"
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
"end": "(\\))",
|
|
330
|
+
"endCaptures": {
|
|
331
|
+
"1": {
|
|
332
|
+
"name": "keyword.operator.lookahead.regexp punctuation.parenthesis.lookahead.end.regexp"
|
|
333
|
+
},
|
|
334
|
+
"2": {
|
|
335
|
+
"name": "invalid.illegal.newline.python"
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
"patterns": [
|
|
339
|
+
{
|
|
340
|
+
"include": "#regexp-expression"
|
|
341
|
+
}
|
|
342
|
+
]
|
|
343
|
+
},
|
|
344
|
+
"regexp-lookahead-negative": {
|
|
345
|
+
"begin": "(\\()\\?!",
|
|
346
|
+
"beginCaptures": {
|
|
347
|
+
"0": {
|
|
348
|
+
"name": "keyword.operator.lookahead.negative.regexp"
|
|
349
|
+
},
|
|
350
|
+
"1": {
|
|
351
|
+
"name": "punctuation.parenthesis.lookahead.begin.regexp"
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
"end": "(\\))",
|
|
355
|
+
"endCaptures": {
|
|
356
|
+
"1": {
|
|
357
|
+
"name": "keyword.operator.lookahead.negative.regexp punctuation.parenthesis.lookahead.end.regexp"
|
|
358
|
+
},
|
|
359
|
+
"2": {
|
|
360
|
+
"name": "invalid.illegal.newline.python"
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
"patterns": [
|
|
364
|
+
{
|
|
365
|
+
"include": "#regexp-expression"
|
|
366
|
+
}
|
|
367
|
+
]
|
|
368
|
+
},
|
|
369
|
+
"regexp-lookbehind": {
|
|
370
|
+
"begin": "(\\()\\?<=",
|
|
371
|
+
"beginCaptures": {
|
|
372
|
+
"0": {
|
|
373
|
+
"name": "keyword.operator.lookbehind.regexp"
|
|
374
|
+
},
|
|
375
|
+
"1": {
|
|
376
|
+
"name": "punctuation.parenthesis.lookbehind.begin.regexp"
|
|
377
|
+
}
|
|
378
|
+
},
|
|
379
|
+
"end": "(\\))",
|
|
380
|
+
"endCaptures": {
|
|
381
|
+
"1": {
|
|
382
|
+
"name": "keyword.operator.lookbehind.regexp punctuation.parenthesis.lookbehind.end.regexp"
|
|
383
|
+
},
|
|
384
|
+
"2": {
|
|
385
|
+
"name": "invalid.illegal.newline.python"
|
|
386
|
+
}
|
|
387
|
+
},
|
|
388
|
+
"patterns": [
|
|
389
|
+
{
|
|
390
|
+
"include": "#regexp-expression"
|
|
391
|
+
}
|
|
392
|
+
]
|
|
393
|
+
},
|
|
394
|
+
"regexp-lookbehind-negative": {
|
|
395
|
+
"begin": "(\\()\\?<!",
|
|
396
|
+
"beginCaptures": {
|
|
397
|
+
"0": {
|
|
398
|
+
"name": "keyword.operator.lookbehind.negative.regexp"
|
|
399
|
+
},
|
|
400
|
+
"1": {
|
|
401
|
+
"name": "punctuation.parenthesis.lookbehind.begin.regexp"
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
"end": "(\\))",
|
|
405
|
+
"endCaptures": {
|
|
406
|
+
"1": {
|
|
407
|
+
"name": "keyword.operator.lookbehind.negative.regexp punctuation.parenthesis.lookbehind.end.regexp"
|
|
408
|
+
},
|
|
409
|
+
"2": {
|
|
410
|
+
"name": "invalid.illegal.newline.python"
|
|
411
|
+
}
|
|
412
|
+
},
|
|
413
|
+
"patterns": [
|
|
414
|
+
{
|
|
415
|
+
"include": "#regexp-expression"
|
|
416
|
+
}
|
|
417
|
+
]
|
|
418
|
+
},
|
|
419
|
+
"regexp-named-group": {
|
|
420
|
+
"begin": "(?x)\n(\\() (\\?P <\\w+(?:\\s+[[:alnum:]]+)?>)\n",
|
|
421
|
+
"beginCaptures": {
|
|
422
|
+
"1": {
|
|
423
|
+
"name": "support.other.parenthesis.regexp punctuation.parenthesis.named.begin.regexp"
|
|
424
|
+
},
|
|
425
|
+
"2": {
|
|
426
|
+
"name": "entity.name.tag.named.group.regexp"
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
"end": "(\\))",
|
|
430
|
+
"endCaptures": {
|
|
431
|
+
"1": {
|
|
432
|
+
"name": "support.other.parenthesis.regexp punctuation.parenthesis.named.end.regexp"
|
|
433
|
+
},
|
|
434
|
+
"2": {
|
|
435
|
+
"name": "invalid.illegal.newline.python"
|
|
436
|
+
}
|
|
437
|
+
},
|
|
438
|
+
"name": "meta.named.regexp",
|
|
439
|
+
"patterns": [
|
|
440
|
+
{
|
|
441
|
+
"include": "#regexp-expression"
|
|
442
|
+
}
|
|
443
|
+
]
|
|
444
|
+
},
|
|
445
|
+
"regexp-parentheses": {
|
|
446
|
+
"begin": "\\(",
|
|
447
|
+
"beginCaptures": {
|
|
448
|
+
"0": {
|
|
449
|
+
"name": "support.other.parenthesis.regexp punctuation.parenthesis.begin.regexp"
|
|
450
|
+
}
|
|
451
|
+
},
|
|
452
|
+
"end": "(\\))",
|
|
453
|
+
"endCaptures": {
|
|
454
|
+
"1": {
|
|
455
|
+
"name": "support.other.parenthesis.regexp punctuation.parenthesis.end.regexp"
|
|
456
|
+
},
|
|
457
|
+
"2": {
|
|
458
|
+
"name": "invalid.illegal.newline.python"
|
|
459
|
+
}
|
|
460
|
+
},
|
|
461
|
+
"patterns": [
|
|
462
|
+
{
|
|
463
|
+
"include": "#regexp-expression"
|
|
464
|
+
}
|
|
465
|
+
]
|
|
466
|
+
},
|
|
467
|
+
"regexp-parentheses-non-capturing": {
|
|
468
|
+
"begin": "\\(\\?:",
|
|
469
|
+
"beginCaptures": {
|
|
470
|
+
"0": {
|
|
471
|
+
"name": "support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.begin.regexp"
|
|
472
|
+
}
|
|
473
|
+
},
|
|
474
|
+
"end": "(\\))",
|
|
475
|
+
"endCaptures": {
|
|
476
|
+
"1": {
|
|
477
|
+
"name": "support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.end.regexp"
|
|
478
|
+
},
|
|
479
|
+
"2": {
|
|
480
|
+
"name": "invalid.illegal.newline.python"
|
|
481
|
+
}
|
|
482
|
+
},
|
|
483
|
+
"patterns": [
|
|
484
|
+
{
|
|
485
|
+
"include": "#regexp-expression"
|
|
486
|
+
}
|
|
487
|
+
]
|
|
488
|
+
},
|
|
489
|
+
"regexp-quantifier": {
|
|
490
|
+
"match": "(?x)\n\\{(\n\\d+ | \\d+,(\\d+)? | ,\\d+\n)\\}\n",
|
|
491
|
+
"name": "keyword.operator.quantifier.regexp"
|
|
492
|
+
}
|
|
493
|
+
},
|
|
494
|
+
"scopeName": "source.regexp.python"
|
|
495
|
+
}
|
package/index.js
CHANGED
|
@@ -2387,6 +2387,20 @@ export const grammars = [
|
|
|
2387
2387
|
sha: '896096fc6756329d82c71a913663a1c0ac678f74',
|
|
2388
2388
|
source: 'https://github.com/mihai-vlc/reg-vscode/blob/896096fc6756329d82c71a913663a1c0ac678f74/syntaxes/reg.tmLanguage',
|
|
2389
2389
|
},
|
|
2390
|
+
{
|
|
2391
|
+
aliases: [
|
|
2392
|
+
'regex',
|
|
2393
|
+
],
|
|
2394
|
+
byteSize: 7900,
|
|
2395
|
+
displayName: 'RegExp',
|
|
2396
|
+
lastUpdate: '2020-02-16T01:06:09Z',
|
|
2397
|
+
license: 'MIT',
|
|
2398
|
+
licenseUrl: 'https://raw.githubusercontent.com/MagicStack/MagicPython/master/LICENSE',
|
|
2399
|
+
name: 'regexp',
|
|
2400
|
+
scopeName: 'source.regexp.python',
|
|
2401
|
+
sha: 'c9b3409deb69acec31bbf7913830e93a046b30cc',
|
|
2402
|
+
source: 'https://github.com/MagicStack/MagicPython/blob/c9b3409deb69acec31bbf7913830e93a046b30cc/grammars/MagicRegExp.tmLanguage',
|
|
2403
|
+
},
|
|
2390
2404
|
{
|
|
2391
2405
|
byteSize: 3260,
|
|
2392
2406
|
displayName: 'Rel',
|
|
@@ -3388,7 +3402,7 @@ export const injections = [
|
|
|
3388
3402
|
source: 'https://github.com/angular/vscode-ng-language-service/blob/28739e438742bee69faceda5fd15445682451397/syntaxes/template.json',
|
|
3389
3403
|
},
|
|
3390
3404
|
{
|
|
3391
|
-
byteSize:
|
|
3405
|
+
byteSize: 1212,
|
|
3392
3406
|
embedded: [
|
|
3393
3407
|
'angular-expression',
|
|
3394
3408
|
'angular-template',
|
|
@@ -3402,13 +3416,13 @@ export const injections = [
|
|
|
3402
3416
|
'text.html.derivative.ng',
|
|
3403
3417
|
'source.ts.ng',
|
|
3404
3418
|
],
|
|
3405
|
-
lastUpdate: '
|
|
3419
|
+
lastUpdate: '2024-05-17T17:00:54Z',
|
|
3406
3420
|
license: 'MIT',
|
|
3407
3421
|
licenseUrl: 'https://raw.githubusercontent.com/angular/vscode-ng-language-service/main/LICENSE',
|
|
3408
3422
|
name: 'angular-template-blocks',
|
|
3409
3423
|
scopeName: 'template.blocks.ng',
|
|
3410
|
-
sha: '
|
|
3411
|
-
source: 'https://github.com/angular/vscode-ng-language-service/blob/
|
|
3424
|
+
sha: 'dceedb686d45f19a65a50398be3dbce2526e7d11',
|
|
3425
|
+
source: 'https://github.com/angular/vscode-ng-language-service/blob/dceedb686d45f19a65a50398be3dbce2526e7d11/syntaxes/template-blocks.json',
|
|
3412
3426
|
},
|
|
3413
3427
|
{
|
|
3414
3428
|
byteSize: 235569,
|