uv 0.0.7.2 → 0.0.7.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/uv/{finding_syntaxes.rb → finding_syntax_nodes.rb} +30 -21
- data/lib/uv/syntaxes.rb +51 -0
- data/lib/uv/version.rb +1 -1
- data/lib/uv.rb +19 -12
- data/syntax/build.syntax +20 -20
- data/syntax/erlang.syntax +404 -404
- data/syntax/perl.syntax +426 -430
- data/test/test_uv.rb +14 -0
- metadata +9 -9
- data/syntax/mootools.syntax +0 -572
data/syntax/perl.syntax
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
---
|
1
|
+
---
|
2
2
|
name: Perl
|
3
|
-
fileTypes:
|
3
|
+
fileTypes:
|
4
4
|
- pl
|
5
5
|
- pm
|
6
6
|
- pod
|
@@ -8,439 +8,439 @@ fileTypes:
|
|
8
8
|
- PL
|
9
9
|
firstLineMatch: ^#!.*\bperl\b
|
10
10
|
scopeName: source.perl
|
11
|
-
repository:
|
12
|
-
nested_ltgt:
|
13
|
-
captures:
|
14
|
-
"1":
|
11
|
+
repository:
|
12
|
+
nested_ltgt:
|
13
|
+
captures:
|
14
|
+
"1":
|
15
15
|
name: punctuation.section.scope.perl
|
16
16
|
begin: <
|
17
17
|
end: ">"
|
18
|
-
patterns:
|
18
|
+
patterns:
|
19
19
|
- include: "#nested_ltgt"
|
20
|
-
escaped_char:
|
20
|
+
escaped_char:
|
21
21
|
name: constant.character.escape.perl
|
22
22
|
match: \\.
|
23
|
-
nested_brackets:
|
24
|
-
captures:
|
25
|
-
"1":
|
23
|
+
nested_brackets:
|
24
|
+
captures:
|
25
|
+
"1":
|
26
26
|
name: punctuation.section.scope.perl
|
27
27
|
begin: \[
|
28
28
|
end: \]
|
29
|
-
patterns:
|
29
|
+
patterns:
|
30
30
|
- include: "#escaped_char"
|
31
31
|
- include: "#nested_brackets"
|
32
|
-
nested_braces:
|
33
|
-
captures:
|
34
|
-
"1":
|
32
|
+
nested_braces:
|
33
|
+
captures:
|
34
|
+
"1":
|
35
35
|
name: punctuation.section.scope.perl
|
36
36
|
begin: \{
|
37
37
|
end: \}
|
38
|
-
patterns:
|
38
|
+
patterns:
|
39
39
|
- include: "#escaped_char"
|
40
40
|
- include: "#nested_braces"
|
41
|
-
line_comment:
|
42
|
-
patterns:
|
41
|
+
line_comment:
|
42
|
+
patterns:
|
43
43
|
- name: meta.comment.full-line.perl
|
44
|
-
captures:
|
45
|
-
"1":
|
44
|
+
captures:
|
45
|
+
"1":
|
46
46
|
name: comment.line.number-sign.perl
|
47
|
-
"2":
|
47
|
+
"2":
|
48
48
|
name: punctuation.definition.comment.perl
|
49
49
|
match: ^((#).*$\n?)
|
50
50
|
- name: comment.line.number-sign.perl
|
51
|
-
captures:
|
52
|
-
"1":
|
51
|
+
captures:
|
52
|
+
"1":
|
53
53
|
name: punctuation.definition.comment.perl
|
54
54
|
match: (#).*$\n?
|
55
|
-
nested_parens_interpolated:
|
56
|
-
captures:
|
57
|
-
"1":
|
55
|
+
nested_parens_interpolated:
|
56
|
+
captures:
|
57
|
+
"1":
|
58
58
|
name: punctuation.section.scope.perl
|
59
59
|
begin: \(
|
60
60
|
end: \)
|
61
|
-
patterns:
|
61
|
+
patterns:
|
62
62
|
- include: "#escaped_char"
|
63
63
|
- include: "#variable"
|
64
64
|
- include: "#nested_parens_interpolated"
|
65
|
-
nested_parens:
|
66
|
-
captures:
|
67
|
-
"1":
|
65
|
+
nested_parens:
|
66
|
+
captures:
|
67
|
+
"1":
|
68
68
|
name: punctuation.section.scope.perl
|
69
69
|
begin: \(
|
70
70
|
end: \)
|
71
|
-
patterns:
|
71
|
+
patterns:
|
72
72
|
- include: "#escaped_char"
|
73
73
|
- include: "#nested_parens"
|
74
|
-
nested_brackets_interpolated:
|
75
|
-
captures:
|
76
|
-
"1":
|
74
|
+
nested_brackets_interpolated:
|
75
|
+
captures:
|
76
|
+
"1":
|
77
77
|
name: punctuation.section.scope.perl
|
78
78
|
begin: \[
|
79
79
|
end: \]
|
80
|
-
patterns:
|
80
|
+
patterns:
|
81
81
|
- include: "#escaped_char"
|
82
82
|
- include: "#variable"
|
83
83
|
- include: "#nested_brackets_interpolated"
|
84
|
-
nested_braces_interpolated:
|
85
|
-
captures:
|
86
|
-
"1":
|
84
|
+
nested_braces_interpolated:
|
85
|
+
captures:
|
86
|
+
"1":
|
87
87
|
name: punctuation.section.scope.perl
|
88
88
|
begin: \{
|
89
89
|
end: \}
|
90
|
-
patterns:
|
90
|
+
patterns:
|
91
91
|
- include: "#escaped_char"
|
92
92
|
- include: "#variable"
|
93
93
|
- include: "#nested_braces_interpolated"
|
94
|
-
nested_ltgt_interpolated:
|
95
|
-
captures:
|
96
|
-
"1":
|
94
|
+
nested_ltgt_interpolated:
|
95
|
+
captures:
|
96
|
+
"1":
|
97
97
|
name: punctuation.section.scope.perl
|
98
98
|
begin: <
|
99
99
|
end: ">"
|
100
|
-
patterns:
|
100
|
+
patterns:
|
101
101
|
- include: "#variable"
|
102
102
|
- include: "#nested_ltgt_interpolated"
|
103
|
-
variable:
|
104
|
-
patterns:
|
103
|
+
variable:
|
104
|
+
patterns:
|
105
105
|
- name: variable.other.regexp.match.perl
|
106
|
-
captures:
|
107
|
-
"1":
|
106
|
+
captures:
|
107
|
+
"1":
|
108
108
|
name: punctuation.definition.variable.perl
|
109
109
|
match: (\$)&(?![A-Za-z0-9_])
|
110
110
|
- name: variable.other.regexp.pre-match.perl
|
111
|
-
captures:
|
112
|
-
"1":
|
111
|
+
captures:
|
112
|
+
"1":
|
113
113
|
name: punctuation.definition.variable.perl
|
114
114
|
match: (\$)`(?![A-Za-z0-9_])
|
115
115
|
- name: variable.other.regexp.post-match.perl
|
116
|
-
captures:
|
117
|
-
"1":
|
116
|
+
captures:
|
117
|
+
"1":
|
118
118
|
name: punctuation.definition.variable.perl
|
119
119
|
match: (\$)'(?![A-Za-z0-9_])
|
120
120
|
- name: variable.other.regexp.last-paren-match.perl
|
121
|
-
captures:
|
122
|
-
"1":
|
121
|
+
captures:
|
122
|
+
"1":
|
123
123
|
name: punctuation.definition.variable.perl
|
124
124
|
match: (\$)\+(?![A-Za-z0-9_])
|
125
125
|
- name: variable.other.readwrite.list-separator.perl
|
126
|
-
captures:
|
127
|
-
"1":
|
126
|
+
captures:
|
127
|
+
"1":
|
128
128
|
name: punctuation.definition.variable.perl
|
129
129
|
match: (\$)"(?![A-Za-z0-9_])
|
130
130
|
- name: variable.other.predefined.program-name.perl
|
131
|
-
captures:
|
132
|
-
"1":
|
131
|
+
captures:
|
132
|
+
"1":
|
133
133
|
name: punctuation.definition.variable.perl
|
134
134
|
match: (\$)0(?![A-Za-z0-9_])
|
135
135
|
- name: variable.other.predefined.perl
|
136
|
-
captures:
|
137
|
-
"1":
|
136
|
+
captures:
|
137
|
+
"1":
|
138
138
|
name: punctuation.definition.variable.perl
|
139
139
|
match: (\$)[_ab\*\.\/\|,\\;#%=\-~^:?!\$<>\(\)\[\]@](?![A-Za-z0-9_])
|
140
140
|
- name: variable.other.subpattern.perl
|
141
|
-
captures:
|
142
|
-
"1":
|
141
|
+
captures:
|
142
|
+
"1":
|
143
143
|
name: punctuation.definition.variable.perl
|
144
144
|
match: (\$)[0-9]+(?![A-Za-z0-9_])
|
145
145
|
- name: variable.other.readwrite.global.perl
|
146
|
-
captures:
|
147
|
-
"1":
|
146
|
+
captures:
|
147
|
+
"1":
|
148
148
|
name: punctuation.definition.variable.perl
|
149
149
|
match: ([\$\@\%](#)?)([a-zA-Zx7f-xff\$]|::)([a-zA-Z0-9_x7f-xff\$]|::)*\b
|
150
150
|
- name: variable.other.readwrite.global.perl
|
151
|
-
captures:
|
152
|
-
"1":
|
151
|
+
captures:
|
152
|
+
"1":
|
153
153
|
name: punctuation.definition.variable.perl
|
154
|
-
"2":
|
154
|
+
"2":
|
155
155
|
name: punctuation.definition.variable.perl
|
156
156
|
match: (\$\{)(?:[a-zA-Zx7f-xff\$]|::)(?:[a-zA-Z0-9_x7f-xff\$]|::)*(\})
|
157
157
|
- name: variable.other.readwrite.global.special.perl
|
158
|
-
captures:
|
159
|
-
"1":
|
158
|
+
captures:
|
159
|
+
"1":
|
160
160
|
name: punctuation.definition.variable.perl
|
161
161
|
match: ([\$\@\%](#)?)[0-9_]\b
|
162
162
|
uuid: EDBFE125-6B1C-11D9-9189-000D93589AF6
|
163
163
|
foldingStartMarker: (/\*|(\{|\[|\()\s*$)
|
164
|
-
patterns:
|
164
|
+
patterns:
|
165
165
|
- include: "#line_comment"
|
166
166
|
- name: comment.block.documentation.perl
|
167
|
-
captures:
|
168
|
-
"0":
|
167
|
+
captures:
|
168
|
+
"0":
|
169
169
|
name: punctuation.definition.comment.perl
|
170
170
|
begin: ^=
|
171
171
|
end: ^=cut
|
172
172
|
- include: "#variable"
|
173
|
-
- endCaptures:
|
174
|
-
"1":
|
173
|
+
- endCaptures:
|
174
|
+
"1":
|
175
175
|
name: string.regexp.compile.perl
|
176
|
-
"2":
|
176
|
+
"2":
|
177
177
|
name: punctuation.definition.string.perl
|
178
|
-
"3":
|
178
|
+
"3":
|
179
179
|
name: keyword.control.regexp-option.perl
|
180
180
|
begin: \b(?=qr\s*[^\s\w])
|
181
181
|
applyEndPatternLast: 1
|
182
182
|
end: ((([egimosx]*)))(?=(\s+\S|\s*[;\,\#\{\}\)]|$))
|
183
|
-
patterns:
|
183
|
+
patterns:
|
184
184
|
- name: string.regexp.compile.nested_braces.perl
|
185
|
-
captures:
|
186
|
-
"0":
|
185
|
+
captures:
|
186
|
+
"0":
|
187
187
|
name: punctuation.definition.string.perl
|
188
|
-
"1":
|
188
|
+
"1":
|
189
189
|
name: support.function.perl
|
190
190
|
begin: (qr)\s*\{
|
191
191
|
end: \}
|
192
|
-
patterns:
|
192
|
+
patterns:
|
193
193
|
- include: "#escaped_char"
|
194
194
|
- include: "#variable"
|
195
195
|
- include: "#nested_braces_interpolated"
|
196
196
|
- name: string.regexp.compile.nested_brackets.perl
|
197
|
-
captures:
|
198
|
-
"0":
|
197
|
+
captures:
|
198
|
+
"0":
|
199
199
|
name: punctuation.definition.string.perl
|
200
|
-
"1":
|
200
|
+
"1":
|
201
201
|
name: support.function.perl
|
202
202
|
begin: (qr)\s*\[
|
203
203
|
end: \]
|
204
|
-
patterns:
|
204
|
+
patterns:
|
205
205
|
- include: "#escaped_char"
|
206
206
|
- include: "#variable"
|
207
207
|
- include: "#nested_brackets_interpolated"
|
208
208
|
- name: string.regexp.compile.nested_ltgt.perl
|
209
|
-
captures:
|
210
|
-
"0":
|
209
|
+
captures:
|
210
|
+
"0":
|
211
211
|
name: punctuation.definition.string.perl
|
212
|
-
"1":
|
212
|
+
"1":
|
213
213
|
name: support.function.perl
|
214
214
|
begin: (qr)\s*<
|
215
215
|
end: ">"
|
216
|
-
patterns:
|
216
|
+
patterns:
|
217
217
|
- include: "#escaped_char"
|
218
218
|
- include: "#variable"
|
219
219
|
- include: "#nested_ltgt_interpolated"
|
220
220
|
- name: string.regexp.compile.nested_parens.perl
|
221
|
-
captures:
|
222
|
-
"0":
|
221
|
+
captures:
|
222
|
+
"0":
|
223
223
|
name: punctuation.definition.string.perl
|
224
|
-
"1":
|
224
|
+
"1":
|
225
225
|
name: support.function.perl
|
226
226
|
begin: (qr)\s*\(
|
227
227
|
end: \)
|
228
|
-
patterns:
|
228
|
+
patterns:
|
229
229
|
- include: "#escaped_char"
|
230
230
|
- include: "#variable"
|
231
231
|
- include: "#nested_parens_interpolated"
|
232
232
|
- name: string.regexp.compile.single-quote.perl
|
233
|
-
captures:
|
234
|
-
"0":
|
233
|
+
captures:
|
234
|
+
"0":
|
235
235
|
name: punctuation.definition.string.perl
|
236
|
-
"1":
|
236
|
+
"1":
|
237
237
|
name: support.function.perl
|
238
238
|
begin: (qr)\s*\'
|
239
239
|
end: \'
|
240
|
-
patterns:
|
240
|
+
patterns:
|
241
241
|
- include: "#escaped_char"
|
242
242
|
- name: string.regexp.compile.simple-delimiter.perl
|
243
|
-
captures:
|
244
|
-
"0":
|
243
|
+
captures:
|
244
|
+
"0":
|
245
245
|
name: punctuation.definition.string.perl
|
246
|
-
"1":
|
246
|
+
"1":
|
247
247
|
name: support.function.perl
|
248
248
|
begin: (qr)\s*([^\s\w\'\{\[\(\<])
|
249
249
|
end: \2
|
250
|
-
patterns:
|
250
|
+
patterns:
|
251
251
|
- include: "#escaped_char"
|
252
252
|
- include: "#variable"
|
253
253
|
- include: "#nested_parens_interpolated"
|
254
254
|
comment: string.regexp.compile.perl
|
255
|
-
- endCaptures:
|
256
|
-
"1":
|
255
|
+
- endCaptures:
|
256
|
+
"1":
|
257
257
|
name: string.regexp.replace.perl
|
258
|
-
"2":
|
258
|
+
"2":
|
259
259
|
name: punctuation.definition.string.perl
|
260
|
-
"3":
|
260
|
+
"3":
|
261
261
|
name: keyword.control.regexp-option.perl
|
262
262
|
begin: \b(?=(s)(\s+\S|\s*[;\,\#\{\}\(\)\[<]|$))
|
263
263
|
applyEndPatternLast: 1
|
264
264
|
end: ((([egimosx]*)))(?=(\s+\S|\s*[;\,\#\{\}\)\]>]|$))
|
265
|
-
patterns:
|
265
|
+
patterns:
|
266
266
|
- name: string.regexp.nested_braces.perl
|
267
|
-
captures:
|
268
|
-
"0":
|
267
|
+
captures:
|
268
|
+
"0":
|
269
269
|
name: punctuation.definition.string.perl
|
270
|
-
"1":
|
270
|
+
"1":
|
271
271
|
name: support.function.perl
|
272
272
|
begin: (s)\s*\{
|
273
273
|
end: \}
|
274
|
-
patterns:
|
274
|
+
patterns:
|
275
275
|
- include: "#escaped_char"
|
276
276
|
- include: "#nested_braces"
|
277
277
|
- name: string.regexp.nested_brackets.perl
|
278
|
-
captures:
|
279
|
-
"0":
|
278
|
+
captures:
|
279
|
+
"0":
|
280
280
|
name: punctuation.definition.string.perl
|
281
|
-
"1":
|
281
|
+
"1":
|
282
282
|
name: support.function.perl
|
283
283
|
begin: (s)\s*\[
|
284
284
|
end: \]
|
285
|
-
patterns:
|
285
|
+
patterns:
|
286
286
|
- include: "#escaped_char"
|
287
287
|
- include: "#nested_brackets"
|
288
288
|
- name: string.regexp.nested_ltgt.perl
|
289
|
-
captures:
|
290
|
-
"0":
|
289
|
+
captures:
|
290
|
+
"0":
|
291
291
|
name: punctuation.definition.string.perl
|
292
|
-
"1":
|
292
|
+
"1":
|
293
293
|
name: support.function.perl
|
294
294
|
begin: (s)\s*<
|
295
295
|
end: ">"
|
296
|
-
patterns:
|
296
|
+
patterns:
|
297
297
|
- include: "#escaped_char"
|
298
298
|
- include: "#nested_ltgt"
|
299
299
|
- name: string.regexp.nested_parens.perl
|
300
|
-
captures:
|
301
|
-
"0":
|
300
|
+
captures:
|
301
|
+
"0":
|
302
302
|
name: punctuation.definition.string.perl
|
303
|
-
"1":
|
303
|
+
"1":
|
304
304
|
name: support.function.perl
|
305
305
|
begin: (s)\s*\(
|
306
306
|
end: \)
|
307
|
-
patterns:
|
307
|
+
patterns:
|
308
308
|
- include: "#escaped_char"
|
309
309
|
- include: "#nested_parens"
|
310
310
|
- name: string.regexp.format.nested_braces.perl
|
311
|
-
captures:
|
312
|
-
"0":
|
311
|
+
captures:
|
312
|
+
"0":
|
313
313
|
name: punctuation.definition.string.perl
|
314
314
|
begin: \{
|
315
315
|
end: \}
|
316
|
-
patterns:
|
316
|
+
patterns:
|
317
317
|
- include: "#escaped_char"
|
318
318
|
- include: "#variable"
|
319
319
|
- include: "#nested_braces_interpolated"
|
320
320
|
- name: string.regexp.format.nested_brackets.perl
|
321
|
-
captures:
|
322
|
-
"0":
|
321
|
+
captures:
|
322
|
+
"0":
|
323
323
|
name: punctuation.definition.string.perl
|
324
324
|
begin: \[
|
325
325
|
end: \]
|
326
|
-
patterns:
|
326
|
+
patterns:
|
327
327
|
- include: "#escaped_char"
|
328
328
|
- include: "#variable"
|
329
329
|
- include: "#nested_brackets_interpolated"
|
330
330
|
- name: string.regexp.format.nested_ltgt.perl
|
331
|
-
captures:
|
332
|
-
"0":
|
331
|
+
captures:
|
332
|
+
"0":
|
333
333
|
name: punctuation.definition.string.perl
|
334
334
|
begin: <
|
335
335
|
end: ">"
|
336
|
-
patterns:
|
336
|
+
patterns:
|
337
337
|
- include: "#escaped_char"
|
338
338
|
- include: "#variable"
|
339
339
|
- include: "#nested_ltgt_interpolated"
|
340
340
|
- name: string.regexp.format.nested_parens.perl
|
341
|
-
captures:
|
342
|
-
"0":
|
341
|
+
captures:
|
342
|
+
"0":
|
343
343
|
name: punctuation.definition.string.perl
|
344
344
|
begin: \(
|
345
345
|
end: \)
|
346
|
-
patterns:
|
346
|
+
patterns:
|
347
347
|
- include: "#escaped_char"
|
348
348
|
- include: "#variable"
|
349
349
|
- include: "#nested_parens_interpolated"
|
350
350
|
- name: string.regexp.format.single_quote.perl
|
351
|
-
captures:
|
352
|
-
"0":
|
351
|
+
captures:
|
352
|
+
"0":
|
353
353
|
name: punctuation.definition.string.perl
|
354
354
|
begin: "'"
|
355
355
|
end: "'"
|
356
|
-
patterns:
|
356
|
+
patterns:
|
357
357
|
- name: constant.character.escape.perl
|
358
358
|
match: \\['\\]
|
359
359
|
- name: string.regexp.format.simple_delimiter.perl
|
360
|
-
captures:
|
361
|
-
"0":
|
360
|
+
captures:
|
361
|
+
"0":
|
362
362
|
name: punctuation.definition.string.perl
|
363
363
|
begin: ([^\s\w\[({<;])
|
364
364
|
end: \1
|
365
|
-
patterns:
|
365
|
+
patterns:
|
366
366
|
- include: "#escaped_char"
|
367
367
|
- include: "#variable"
|
368
368
|
- match: \s+
|
369
369
|
comment: string.regexp.replace.perl
|
370
|
-
- endCaptures:
|
371
|
-
"1":
|
370
|
+
- endCaptures:
|
371
|
+
"1":
|
372
372
|
name: string.regexp.replace.perl
|
373
|
-
"2":
|
373
|
+
"2":
|
374
374
|
name: punctuation.definition.string.perl
|
375
|
-
"3":
|
375
|
+
"3":
|
376
376
|
name: keyword.control.regexp-option.perl
|
377
377
|
begin: \b(?=s([^\s\w\[({<]).*\1([egimos]*)([\}\)\;\,]|\s+))
|
378
378
|
end: ((([egimos]*)))(?=([\}\)\;\,]|\s+|$))
|
379
|
-
patterns:
|
379
|
+
patterns:
|
380
380
|
- name: string.regexp.replaceXXX.simple_delimiter.perl
|
381
|
-
captures:
|
382
|
-
"0":
|
381
|
+
captures:
|
382
|
+
"0":
|
383
383
|
name: punctuation.definition.string.perl
|
384
|
-
"1":
|
384
|
+
"1":
|
385
385
|
name: support.function.perl
|
386
386
|
begin: (s\s*)([^\s\w\[({<])
|
387
387
|
end: (?=\2)
|
388
|
-
patterns:
|
388
|
+
patterns:
|
389
389
|
- include: "#escaped_char"
|
390
390
|
- name: string.regexp.replaceXXX.format.single_quote.perl
|
391
|
-
captures:
|
392
|
-
"0":
|
391
|
+
captures:
|
392
|
+
"0":
|
393
393
|
name: punctuation.definition.string.perl
|
394
394
|
begin: "'"
|
395
395
|
end: "'"
|
396
|
-
patterns:
|
396
|
+
patterns:
|
397
397
|
- name: constant.character.escape.perl.perl
|
398
398
|
match: \\['\\]
|
399
399
|
- name: string.regexp.replaceXXX.format.simple_delimiter.perl
|
400
|
-
captures:
|
401
|
-
"0":
|
400
|
+
captures:
|
401
|
+
"0":
|
402
402
|
name: punctuation.definition.string.perl
|
403
403
|
begin: ([^\s\w\[({<])
|
404
404
|
end: \1
|
405
|
-
patterns:
|
405
|
+
patterns:
|
406
406
|
- include: "#escaped_char"
|
407
407
|
- include: "#variable"
|
408
408
|
comment: string.regexp.replaceXXX
|
409
|
-
- endCaptures:
|
410
|
-
"1":
|
409
|
+
- endCaptures:
|
410
|
+
"1":
|
411
411
|
name: string.regexp.replace.perl
|
412
|
-
"2":
|
412
|
+
"2":
|
413
413
|
name: punctuation.definition.string.perl
|
414
|
-
"3":
|
414
|
+
"3":
|
415
415
|
name: keyword.control.regexp-option.perl
|
416
416
|
begin: \b(?=(?<!\\)s\s*([^\s\w\[({<]))
|
417
417
|
end: \2((([egimos]*x[egimos]*)))\b
|
418
|
-
patterns:
|
418
|
+
patterns:
|
419
419
|
- name: string.regexp.replace.extended.simple_delimiter.perl
|
420
|
-
captures:
|
421
|
-
"0":
|
420
|
+
captures:
|
421
|
+
"0":
|
422
422
|
name: punctuation.definition.string.perl
|
423
|
-
"1":
|
423
|
+
"1":
|
424
424
|
name: support.function.perl
|
425
425
|
begin: (s)\s*(.)
|
426
426
|
end: (?=\2)
|
427
|
-
patterns:
|
427
|
+
patterns:
|
428
428
|
- include: "#escaped_char"
|
429
429
|
- name: string.regexp.replace.extended.simple_delimiter.perl
|
430
|
-
captures:
|
431
|
-
"0":
|
430
|
+
captures:
|
431
|
+
"0":
|
432
432
|
name: punctuation.definition.string.perl
|
433
433
|
begin: "'"
|
434
434
|
end: "'(?=[egimos]*x[egimos]*)\\b"
|
435
|
-
patterns:
|
435
|
+
patterns:
|
436
436
|
- include: "#escaped_char"
|
437
437
|
- name: string.regexp.replace.extended.simple_delimiter.perl
|
438
|
-
captures:
|
439
|
-
"0":
|
438
|
+
captures:
|
439
|
+
"0":
|
440
440
|
name: punctuation.definition.string.perl
|
441
441
|
begin: (.)
|
442
442
|
end: \1(?=[egimos]*x[egimos]*)\b
|
443
|
-
patterns:
|
443
|
+
patterns:
|
444
444
|
- include: "#escaped_char"
|
445
445
|
- include: "#variable"
|
446
446
|
comment: string.regexp.replace.extended
|
@@ -449,133 +449,133 @@ patterns:
|
|
449
449
|
- name: constant.other.bareword.perl
|
450
450
|
match: (?<={)\s*\w+\s*(?=})
|
451
451
|
- name: string.regexp.find.perl
|
452
|
-
captures:
|
453
|
-
"1":
|
452
|
+
captures:
|
453
|
+
"1":
|
454
454
|
name: punctuation.definition.string.perl
|
455
|
-
"5":
|
455
|
+
"5":
|
456
456
|
name: punctuation.definition.string.perl
|
457
457
|
match: (?<!\\)((~\s*)?\/)(.*?)(?<!\\)(\\{2})*(\/)
|
458
458
|
- name: string.regexp.find.extended.perl
|
459
|
-
endCaptures:
|
460
|
-
"1":
|
459
|
+
endCaptures:
|
460
|
+
"1":
|
461
461
|
name: keyword.control.regexp-option.perl
|
462
|
-
captures:
|
463
|
-
"0":
|
462
|
+
captures:
|
463
|
+
"0":
|
464
464
|
name: punctuation.definition.string.perl
|
465
465
|
begin: (?<!\\)(\~\s*\/)
|
466
466
|
end: \/([cgimos]*x[cgimos]*)\b
|
467
|
-
patterns:
|
467
|
+
patterns:
|
468
468
|
- include: "#escaped_char"
|
469
469
|
- include: "#variable"
|
470
470
|
- name: meta.class.perl
|
471
|
-
captures:
|
472
|
-
"1":
|
471
|
+
captures:
|
472
|
+
"1":
|
473
473
|
name: keyword.control.perl
|
474
|
-
"2":
|
474
|
+
"2":
|
475
475
|
name: entity.name.type.class.perl
|
476
|
-
"3":
|
476
|
+
"3":
|
477
477
|
name: comment.line.number-sign.perl
|
478
|
-
"4":
|
478
|
+
"4":
|
479
479
|
name: punctuation.definition.comment.perl
|
480
480
|
match: ^\s*(package)\s+(\S+)\s*((#).*)?$\n?
|
481
481
|
- name: meta.function.perl
|
482
|
-
captures:
|
483
|
-
"1":
|
482
|
+
captures:
|
483
|
+
"1":
|
484
484
|
name: storage.type.sub.perl
|
485
|
-
"2":
|
485
|
+
"2":
|
486
486
|
name: entity.name.function.perl
|
487
|
-
"3":
|
487
|
+
"3":
|
488
488
|
name: storage.type.method.perl
|
489
489
|
match: ^\s*(sub)\s+([-a-zA-Z0-9_]+)\s*(\([\$\@\*;]*\))?
|
490
490
|
- name: meta.function.perl
|
491
|
-
captures:
|
492
|
-
"1":
|
491
|
+
captures:
|
492
|
+
"1":
|
493
493
|
name: entity.name.function.perl
|
494
|
-
"2":
|
494
|
+
"2":
|
495
495
|
name: punctuation.definition.parameters.perl
|
496
|
-
"3":
|
496
|
+
"3":
|
497
497
|
name: variable.parameter.function.perl
|
498
498
|
match: ^\s*(BEGIN|END|DESTROY)\b
|
499
499
|
- name: meta.leading-tabs
|
500
500
|
begin: ^(?=(\t| {4}))
|
501
501
|
end: (?=[^\t\s])
|
502
|
-
patterns:
|
503
|
-
- captures:
|
504
|
-
"1":
|
502
|
+
patterns:
|
503
|
+
- captures:
|
504
|
+
"1":
|
505
505
|
name: meta.odd-tab
|
506
|
-
"2":
|
506
|
+
"2":
|
507
507
|
name: meta.even-tab
|
508
508
|
match: (\t| {4})(\t| {4})?
|
509
509
|
- name: string.regexp.find-m.perl
|
510
|
-
captures:
|
511
|
-
"1":
|
510
|
+
captures:
|
511
|
+
"1":
|
512
512
|
name: support.function.perl
|
513
|
-
"2":
|
513
|
+
"2":
|
514
514
|
name: punctuation.definition.string.perl
|
515
|
-
"5":
|
515
|
+
"5":
|
516
516
|
name: punctuation.definition.string.perl
|
517
517
|
match: \b(m)\s*(?<!\\)([^\[\{\(A-Za-z0-9\s])(.*?)(?<!\\)(\\{2})*(\2)
|
518
518
|
- name: string.regexp.find-m-paren.perl
|
519
|
-
endCaptures:
|
520
|
-
"0":
|
519
|
+
endCaptures:
|
520
|
+
"0":
|
521
521
|
name: punctuation.definition.string.end.perl
|
522
522
|
begin: \b(m)\s*(?<!\\)\(
|
523
|
-
beginCaptures:
|
524
|
-
"0":
|
523
|
+
beginCaptures:
|
524
|
+
"0":
|
525
525
|
name: punctuation.definition.string.begin.perl
|
526
526
|
end: \)
|
527
|
-
patterns:
|
527
|
+
patterns:
|
528
528
|
- include: "#escaped_char"
|
529
529
|
- include: "#nested_parens_interpolated"
|
530
530
|
- include: "#variable"
|
531
531
|
- name: string.regexp.find-m-brace.perl
|
532
|
-
endCaptures:
|
533
|
-
"0":
|
532
|
+
endCaptures:
|
533
|
+
"0":
|
534
534
|
name: punctuation.definition.string.end.perl
|
535
535
|
begin: \b(m)\s*(?<!\\)\{
|
536
|
-
beginCaptures:
|
537
|
-
"0":
|
536
|
+
beginCaptures:
|
537
|
+
"0":
|
538
538
|
name: punctuation.definition.string.begin.perl
|
539
539
|
end: \}
|
540
|
-
patterns:
|
540
|
+
patterns:
|
541
541
|
- include: "#escaped_char"
|
542
542
|
- include: "#nested_braces_interpolated"
|
543
543
|
- include: "#variable"
|
544
544
|
- name: string.regexp.find-m-bracket.perl
|
545
|
-
endCaptures:
|
546
|
-
"0":
|
545
|
+
endCaptures:
|
546
|
+
"0":
|
547
547
|
name: punctuation.definition.string.end.perl
|
548
548
|
begin: \b(m)\s*(?<!\\)\[
|
549
|
-
beginCaptures:
|
550
|
-
"0":
|
549
|
+
beginCaptures:
|
550
|
+
"0":
|
551
551
|
name: punctuation.definition.string.begin.perl
|
552
552
|
end: \]
|
553
|
-
patterns:
|
553
|
+
patterns:
|
554
554
|
- include: "#escaped_char"
|
555
555
|
- include: "#nested_brackets_interpolated"
|
556
556
|
- include: "#variable"
|
557
557
|
- name: string.regexp.find-m-ltgt.perl
|
558
|
-
endCaptures:
|
559
|
-
"0":
|
558
|
+
endCaptures:
|
559
|
+
"0":
|
560
560
|
name: punctuation.definition.string.end.perl
|
561
561
|
begin: \b(m)\s*(?<!\\)\<
|
562
|
-
beginCaptures:
|
563
|
-
"0":
|
562
|
+
beginCaptures:
|
563
|
+
"0":
|
564
564
|
name: punctuation.definition.string.begin.perl
|
565
565
|
end: \>
|
566
|
-
patterns:
|
566
|
+
patterns:
|
567
567
|
- include: "#escaped_char"
|
568
568
|
- include: "#nested_ltgt_interpolated"
|
569
569
|
- include: "#variable"
|
570
570
|
- name: string.regexp.replace.perl
|
571
|
-
captures:
|
572
|
-
"8":
|
571
|
+
captures:
|
572
|
+
"8":
|
573
573
|
name: punctuation.definition.string.perl
|
574
|
-
"1":
|
574
|
+
"1":
|
575
575
|
name: support.function.perl
|
576
|
-
"2":
|
576
|
+
"2":
|
577
577
|
name: punctuation.definition.string.perl
|
578
|
-
"5":
|
578
|
+
"5":
|
579
579
|
name: punctuation.definition.string.perl
|
580
580
|
match: \b(s|tr|y)\s*([^A-Za-z0-9\s])(.*?)(?<!\\)(\\{2})*(\2)(.*?)(?<!\\)(\\{2})*(\2)
|
581
581
|
- name: constant.language.perl
|
@@ -590,526 +590,522 @@ patterns:
|
|
590
590
|
match: \b(and|or|xor|as)\b
|
591
591
|
- name: keyword.operator.comparison.perl
|
592
592
|
match: (<=>| =>|->)
|
593
|
-
- captures:
|
594
|
-
"0":
|
593
|
+
- captures:
|
594
|
+
"0":
|
595
595
|
name: punctuation.definition.string.perl
|
596
|
-
"1":
|
596
|
+
"1":
|
597
597
|
name: string.unquoted.heredoc.doublequote.perl
|
598
|
-
"2":
|
598
|
+
"2":
|
599
599
|
name: punctuation.definition.heredoc.perl
|
600
600
|
begin: ((<<) *"HTML").*\n?
|
601
601
|
contentName: text.html.embedded.perl
|
602
602
|
end: (^HTML$)
|
603
|
-
patterns:
|
603
|
+
patterns:
|
604
604
|
- include: "#escaped_char"
|
605
605
|
- include: "#variable"
|
606
606
|
- include: text.html.basic
|
607
|
-
- captures:
|
608
|
-
"0":
|
607
|
+
- captures:
|
608
|
+
"0":
|
609
609
|
name: punctuation.definition.string.perl
|
610
|
-
"1":
|
610
|
+
"1":
|
611
611
|
name: string.unquoted.heredoc.doublequote.perl
|
612
|
-
"2":
|
612
|
+
"2":
|
613
613
|
name: punctuation.definition.heredoc.perl
|
614
614
|
begin: ((<<) *"XML").*\n?
|
615
615
|
contentName: text.xml.embedded.perl
|
616
616
|
end: (^XML$)
|
617
|
-
patterns:
|
617
|
+
patterns:
|
618
618
|
- include: "#escaped_char"
|
619
619
|
- include: "#variable"
|
620
620
|
- include: text.xml
|
621
|
-
- captures:
|
622
|
-
"0":
|
621
|
+
- captures:
|
622
|
+
"0":
|
623
623
|
name: punctuation.definition.string.perl
|
624
|
-
"1":
|
624
|
+
"1":
|
625
625
|
name: string.unquoted.heredoc.doublequote.perl
|
626
|
-
"2":
|
626
|
+
"2":
|
627
627
|
name: punctuation.definition.heredoc.perl
|
628
628
|
begin: ((<<) *"CSS").*\n?
|
629
629
|
contentName: text.css.embedded.perl
|
630
630
|
end: (^CSS$)
|
631
|
-
patterns:
|
631
|
+
patterns:
|
632
632
|
- include: "#escaped_char"
|
633
633
|
- include: "#variable"
|
634
634
|
- include: source.css
|
635
|
-
- captures:
|
636
|
-
"0":
|
635
|
+
- captures:
|
636
|
+
"0":
|
637
637
|
name: punctuation.definition.string.perl
|
638
|
-
"1":
|
638
|
+
"1":
|
639
639
|
name: string.unquoted.heredoc.doublequote.perl
|
640
|
-
"2":
|
640
|
+
"2":
|
641
641
|
name: punctuation.definition.heredoc.perl
|
642
642
|
begin: ((<<) *"JAVASCRIPT").*\n?
|
643
643
|
contentName: text.js.embedded.perl
|
644
644
|
end: (^JAVASCRIPT$)
|
645
|
-
patterns:
|
645
|
+
patterns:
|
646
646
|
- include: "#escaped_char"
|
647
647
|
- include: "#variable"
|
648
648
|
- include: source.js
|
649
|
-
- captures:
|
650
|
-
"0":
|
649
|
+
- captures:
|
650
|
+
"0":
|
651
651
|
name: punctuation.definition.string.perl
|
652
|
-
"1":
|
652
|
+
"1":
|
653
653
|
name: string.unquoted.heredoc.doublequote.perl
|
654
|
-
"2":
|
654
|
+
"2":
|
655
655
|
name: punctuation.definition.heredoc.perl
|
656
656
|
begin: ((<<) *"SQL").*\n?
|
657
657
|
contentName: source.sql.embedded.perl
|
658
658
|
end: (^SQL$)
|
659
|
-
patterns:
|
659
|
+
patterns:
|
660
660
|
- include: "#escaped_char"
|
661
661
|
- include: "#variable"
|
662
662
|
- include: source.sql
|
663
|
-
- captures:
|
664
|
-
"0":
|
663
|
+
- captures:
|
664
|
+
"0":
|
665
665
|
name: punctuation.definition.string.perl
|
666
|
-
"1":
|
666
|
+
"1":
|
667
667
|
name: string.unquoted.heredoc.doublequote.perl
|
668
|
-
"2":
|
668
|
+
"2":
|
669
669
|
name: punctuation.definition.heredoc.perl
|
670
670
|
begin: ((<<) *"POSTSCRIPT").*\n?
|
671
671
|
contentName: text.postscript.embedded.perl
|
672
672
|
end: (^POSTSCRIPT$)
|
673
|
-
patterns:
|
673
|
+
patterns:
|
674
674
|
- include: "#escaped_char"
|
675
675
|
- include: "#variable"
|
676
676
|
- include: source.postscript
|
677
|
-
- captures:
|
678
|
-
"0":
|
677
|
+
- captures:
|
678
|
+
"0":
|
679
679
|
name: punctuation.definition.string.perl
|
680
|
-
"1":
|
680
|
+
"1":
|
681
681
|
name: string.unquoted.heredoc.doublequote.perl
|
682
|
-
"2":
|
682
|
+
"2":
|
683
683
|
name: punctuation.definition.heredoc.perl
|
684
684
|
begin: ((<<) *"([^"]*)").*\n?
|
685
685
|
contentName: string.unquoted.heredoc.doublequote.perl
|
686
686
|
end: (^\3$)
|
687
|
-
patterns:
|
687
|
+
patterns:
|
688
688
|
- include: "#escaped_char"
|
689
689
|
- include: "#variable"
|
690
|
-
- captures:
|
691
|
-
"0":
|
690
|
+
- captures:
|
691
|
+
"0":
|
692
692
|
name: punctuation.definition.string.perl
|
693
|
-
"1":
|
693
|
+
"1":
|
694
694
|
name: string.unquoted.heredoc.quote.perl
|
695
|
-
"2":
|
695
|
+
"2":
|
696
696
|
name: punctuation.definition.heredoc.perl
|
697
697
|
begin: ((<<) *'HTML').*\n?
|
698
698
|
contentName: text.html.embedded.perl
|
699
699
|
end: (^HTML$)
|
700
|
-
patterns:
|
700
|
+
patterns:
|
701
701
|
- include: text.html.basic
|
702
|
-
- captures:
|
703
|
-
"0":
|
702
|
+
- captures:
|
703
|
+
"0":
|
704
704
|
name: punctuation.definition.string.perl
|
705
|
-
"1":
|
705
|
+
"1":
|
706
706
|
name: string.unquoted.heredoc.quote.perl
|
707
|
-
"2":
|
707
|
+
"2":
|
708
708
|
name: punctuation.definition.heredoc.perl
|
709
709
|
begin: ((<<) *'XML').*\n?
|
710
710
|
contentName: text.xml.embedded.perl
|
711
711
|
end: (^XML$)
|
712
|
-
patterns:
|
712
|
+
patterns:
|
713
713
|
- include: text.xml
|
714
|
-
- captures:
|
715
|
-
"0":
|
714
|
+
- captures:
|
715
|
+
"0":
|
716
716
|
name: punctuation.definition.string.perl
|
717
|
-
"1":
|
717
|
+
"1":
|
718
718
|
name: string.unquoted.heredoc.quote.perl
|
719
|
-
"2":
|
719
|
+
"2":
|
720
720
|
name: punctuation.definition.heredoc.perl
|
721
721
|
begin: ((<<) *'CSS').*\n?
|
722
722
|
contentName: text.css.embedded.perl
|
723
723
|
end: (^CSS$)
|
724
|
-
patterns:
|
724
|
+
patterns:
|
725
725
|
- include: source.css
|
726
|
-
- captures:
|
727
|
-
"0":
|
726
|
+
- captures:
|
727
|
+
"0":
|
728
728
|
name: punctuation.definition.string.perl
|
729
|
-
"1":
|
729
|
+
"1":
|
730
730
|
name: string.unquoted.heredoc.quote.perl
|
731
|
-
"2":
|
731
|
+
"2":
|
732
732
|
name: punctuation.definition.heredoc.perl
|
733
733
|
begin: ((<<) *'JAVASCRIPT').*\n?
|
734
734
|
contentName: text.js.embedded.perl
|
735
735
|
end: (^JAVASCRIPT$)
|
736
|
-
patterns:
|
736
|
+
patterns:
|
737
737
|
- include: source.js
|
738
|
-
- captures:
|
739
|
-
"0":
|
738
|
+
- captures:
|
739
|
+
"0":
|
740
740
|
name: punctuation.definition.string.perl
|
741
|
-
"1":
|
741
|
+
"1":
|
742
742
|
name: string.unquoted.heredoc.quote.perl
|
743
|
-
"2":
|
743
|
+
"2":
|
744
744
|
name: punctuation.definition.heredoc.perl
|
745
745
|
begin: ((<<) *'SQL').*\n?
|
746
746
|
contentName: source.sql.embedded.perl
|
747
747
|
end: (^SQL$)
|
748
|
-
patterns:
|
748
|
+
patterns:
|
749
749
|
- include: source.sql
|
750
|
-
- captures:
|
751
|
-
"0":
|
750
|
+
- captures:
|
751
|
+
"0":
|
752
752
|
name: punctuation.definition.string.perl
|
753
|
-
"1":
|
753
|
+
"1":
|
754
754
|
name: string.unquoted.heredoc.quote.perl
|
755
|
-
"2":
|
755
|
+
"2":
|
756
756
|
name: punctuation.definition.heredoc.perl
|
757
757
|
begin: ((<<) *'POSTSCRIPT').*\n?
|
758
758
|
contentName: source.postscript.embedded.perl
|
759
759
|
end: (^POSTSCRIPT)
|
760
|
-
patterns:
|
760
|
+
patterns:
|
761
761
|
- include: source.postscript
|
762
|
-
- captures:
|
763
|
-
"0":
|
762
|
+
- captures:
|
763
|
+
"0":
|
764
764
|
name: punctuation.definition.string.perl
|
765
|
-
"1":
|
765
|
+
"1":
|
766
766
|
name: string.unquoted.heredoc.quote.perl
|
767
|
-
"2":
|
767
|
+
"2":
|
768
768
|
name: punctuation.definition.heredoc.perl
|
769
769
|
begin: ((<<) *'([^']*)').*\n?
|
770
770
|
contentName: string.unquoted.heredoc.quote.perl
|
771
771
|
end: (^\3$)
|
772
|
-
- captures:
|
773
|
-
"0":
|
772
|
+
- captures:
|
773
|
+
"0":
|
774
774
|
name: punctuation.definition.string.perl
|
775
|
-
"1":
|
775
|
+
"1":
|
776
776
|
name: string.unquoted.heredoc.backtick.perl
|
777
|
-
"2":
|
777
|
+
"2":
|
778
778
|
name: punctuation.definition.heredoc.perl
|
779
779
|
begin: ((<<) *`([^`]*)`).*\n?
|
780
780
|
contentName: string.unquoted.heredoc.backtick.perl
|
781
781
|
end: (^\3$)
|
782
|
-
patterns:
|
782
|
+
patterns:
|
783
783
|
- include: "#escaped_char"
|
784
784
|
- include: "#variable"
|
785
|
-
- captures:
|
786
|
-
"0":
|
785
|
+
- captures:
|
786
|
+
"0":
|
787
787
|
name: punctuation.definition.string.perl
|
788
|
-
"1":
|
788
|
+
"1":
|
789
789
|
name: string.unquoted.heredoc.perl
|
790
|
-
"2":
|
790
|
+
"2":
|
791
791
|
name: punctuation.definition.heredoc.perl
|
792
792
|
begin: ((<<) *HTML\b).*\n?
|
793
793
|
contentName: text.html.embedded.perl
|
794
794
|
end: (^HTML$)
|
795
|
-
patterns:
|
795
|
+
patterns:
|
796
796
|
- include: "#escaped_char"
|
797
797
|
- include: "#variable"
|
798
798
|
- include: text.html.basic
|
799
|
-
- captures:
|
800
|
-
"0":
|
799
|
+
- captures:
|
800
|
+
"0":
|
801
801
|
name: punctuation.definition.string.perl
|
802
|
-
"1":
|
802
|
+
"1":
|
803
803
|
name: string.unquoted.heredoc.perl
|
804
|
-
"2":
|
804
|
+
"2":
|
805
805
|
name: punctuation.definition.heredoc.perl
|
806
806
|
begin: ((<<) *XML\b).*\n?
|
807
807
|
contentName: text.xml.embedded.perl
|
808
808
|
end: (^XML$)
|
809
|
-
patterns:
|
809
|
+
patterns:
|
810
810
|
- include: "#escaped_char"
|
811
811
|
- include: "#variable"
|
812
812
|
- include: text.xml
|
813
|
-
- captures:
|
814
|
-
"0":
|
813
|
+
- captures:
|
814
|
+
"0":
|
815
815
|
name: punctuation.definition.string.perl
|
816
|
-
"1":
|
816
|
+
"1":
|
817
817
|
name: string.unquoted.heredoc.perl
|
818
|
-
"2":
|
818
|
+
"2":
|
819
819
|
name: punctuation.definition.heredoc.perl
|
820
820
|
begin: ((<<) *SQL\b).*\n?
|
821
821
|
contentName: source.sql.embedded.perl
|
822
822
|
end: (^SQL$)
|
823
|
-
patterns:
|
823
|
+
patterns:
|
824
824
|
- include: "#escaped_char"
|
825
825
|
- include: "#variable"
|
826
826
|
- include: source.sql
|
827
|
-
- captures:
|
828
|
-
"0":
|
827
|
+
- captures:
|
828
|
+
"0":
|
829
829
|
name: punctuation.definition.string.perl
|
830
|
-
"1":
|
830
|
+
"1":
|
831
831
|
name: string.unquoted.heredoc.perl
|
832
|
-
"2":
|
832
|
+
"2":
|
833
833
|
name: punctuation.definition.heredoc.perl
|
834
834
|
begin: ((<<) *POSTSCRIPT\b).*\n?
|
835
835
|
contentName: source.postscript.embedded.perl
|
836
836
|
end: (^POSTSCRIPT)
|
837
|
-
patterns:
|
837
|
+
patterns:
|
838
838
|
- include: "#escaped_char"
|
839
839
|
- include: "#variable"
|
840
840
|
- include: source.postscript
|
841
|
-
- captures:
|
842
|
-
"0":
|
841
|
+
- captures:
|
842
|
+
"0":
|
843
843
|
name: punctuation.definition.string.perl
|
844
|
-
"1":
|
844
|
+
"1":
|
845
845
|
name: string.unquoted.heredoc.perl
|
846
|
-
"2":
|
846
|
+
"2":
|
847
847
|
name: punctuation.definition.heredoc.perl
|
848
848
|
begin: ((<<) *((?![=\d\$ ])[^;,'"`\s)]*)).*\n?
|
849
849
|
contentName: string.unquoted.heredoc.perl
|
850
850
|
end: (^\3$)
|
851
|
-
patterns:
|
851
|
+
patterns:
|
852
852
|
- include: "#escaped_char"
|
853
853
|
- include: "#variable"
|
854
854
|
- name: string.quoted.other.qq.perl
|
855
|
-
endCaptures:
|
856
|
-
"0":
|
855
|
+
endCaptures:
|
856
|
+
"0":
|
857
857
|
name: punctuation.definition.string.end.perl
|
858
858
|
begin: \bqq\s*([^\(\{\[\<\w\s])
|
859
|
-
beginCaptures:
|
860
|
-
"0":
|
859
|
+
beginCaptures:
|
860
|
+
"0":
|
861
861
|
name: punctuation.definition.string.begin.perl
|
862
862
|
end: \1
|
863
|
-
patterns:
|
863
|
+
patterns:
|
864
864
|
- include: "#escaped_char"
|
865
865
|
- include: "#variable"
|
866
866
|
- name: string.interpolated.qx.perl
|
867
|
-
endCaptures:
|
868
|
-
"0":
|
867
|
+
endCaptures:
|
868
|
+
"0":
|
869
869
|
name: punctuation.definition.string.end.perl
|
870
870
|
begin: \bqx\s*([^'\(\{\[\<\w\s])
|
871
|
-
beginCaptures:
|
872
|
-
"0":
|
871
|
+
beginCaptures:
|
872
|
+
"0":
|
873
873
|
name: punctuation.definition.string.begin.perl
|
874
874
|
end: \1
|
875
|
-
patterns:
|
875
|
+
patterns:
|
876
876
|
- include: "#escaped_char"
|
877
877
|
- include: "#variable"
|
878
878
|
- name: string.interpolated.qx.single-quote.perl
|
879
|
-
endCaptures:
|
880
|
-
"0":
|
879
|
+
endCaptures:
|
880
|
+
"0":
|
881
881
|
name: punctuation.definition.string.end.perl
|
882
882
|
begin: \bqx\s*'
|
883
|
-
beginCaptures:
|
884
|
-
"0":
|
883
|
+
beginCaptures:
|
884
|
+
"0":
|
885
885
|
name: punctuation.definition.string.begin.perl
|
886
886
|
end: "'"
|
887
|
-
patterns:
|
887
|
+
patterns:
|
888
888
|
- include: "#escaped_char"
|
889
889
|
- name: string.quoted.double.perl
|
890
|
-
endCaptures:
|
891
|
-
"0":
|
890
|
+
endCaptures:
|
891
|
+
"0":
|
892
892
|
name: punctuation.definition.string.end.perl
|
893
893
|
begin: "\""
|
894
|
-
beginCaptures:
|
895
|
-
"0":
|
894
|
+
beginCaptures:
|
895
|
+
"0":
|
896
896
|
name: punctuation.definition.string.begin.perl
|
897
897
|
end: "\""
|
898
|
-
patterns:
|
898
|
+
patterns:
|
899
899
|
- include: "#escaped_char"
|
900
900
|
- include: "#variable"
|
901
901
|
- name: string.quoted.other.q.perl
|
902
|
-
endCaptures:
|
903
|
-
"0":
|
902
|
+
endCaptures:
|
903
|
+
"0":
|
904
904
|
name: punctuation.definition.string.end.perl
|
905
905
|
begin: \bqw?\s*([^\(\{\[\<\w\s])
|
906
|
-
beginCaptures:
|
907
|
-
"0":
|
906
|
+
beginCaptures:
|
907
|
+
"0":
|
908
908
|
name: punctuation.definition.string.begin.perl
|
909
909
|
end: \1
|
910
|
-
patterns:
|
910
|
+
patterns:
|
911
911
|
- include: "#escaped_char"
|
912
912
|
- name: string.quoted.single.perl
|
913
|
-
endCaptures:
|
914
|
-
"0":
|
913
|
+
endCaptures:
|
914
|
+
"0":
|
915
915
|
name: punctuation.definition.string.end.perl
|
916
916
|
begin: "'"
|
917
|
-
beginCaptures:
|
918
|
-
"0":
|
917
|
+
beginCaptures:
|
918
|
+
"0":
|
919
919
|
name: punctuation.definition.string.begin.perl
|
920
920
|
end: "'"
|
921
|
-
patterns:
|
921
|
+
patterns:
|
922
922
|
- name: constant.character.escape.perl
|
923
923
|
match: \\['\\]
|
924
924
|
- name: string.interpolated.perl
|
925
|
-
endCaptures:
|
926
|
-
"0":
|
925
|
+
endCaptures:
|
926
|
+
"0":
|
927
927
|
name: punctuation.definition.string.end.perl
|
928
928
|
begin: "`"
|
929
|
-
beginCaptures:
|
930
|
-
"0":
|
929
|
+
beginCaptures:
|
930
|
+
"0":
|
931
931
|
name: punctuation.definition.string.begin.perl
|
932
932
|
end: "`"
|
933
|
-
patterns:
|
933
|
+
patterns:
|
934
934
|
- include: "#escaped_char"
|
935
935
|
- include: "#variable"
|
936
936
|
- name: string.quoted.other.qq-paren.perl
|
937
|
-
endCaptures:
|
938
|
-
"0":
|
937
|
+
endCaptures:
|
938
|
+
"0":
|
939
939
|
name: punctuation.definition.string.end.perl
|
940
940
|
begin: \bqq\s*\(
|
941
|
-
beginCaptures:
|
942
|
-
"0":
|
941
|
+
beginCaptures:
|
942
|
+
"0":
|
943
943
|
name: punctuation.definition.string.begin.perl
|
944
944
|
end: \)
|
945
|
-
patterns:
|
945
|
+
patterns:
|
946
946
|
- include: "#escaped_char"
|
947
947
|
- include: "#nested_parens_interpolated"
|
948
948
|
- include: "#variable"
|
949
949
|
- name: string.quoted.other.qq-brace.perl
|
950
|
-
endCaptures:
|
951
|
-
"0":
|
950
|
+
endCaptures:
|
951
|
+
"0":
|
952
952
|
name: punctuation.definition.string.end.perl
|
953
953
|
begin: \bqq\s*\{
|
954
|
-
beginCaptures:
|
955
|
-
"0":
|
954
|
+
beginCaptures:
|
955
|
+
"0":
|
956
956
|
name: punctuation.definition.string.begin.perl
|
957
957
|
end: \}
|
958
|
-
patterns:
|
958
|
+
patterns:
|
959
959
|
- include: "#escaped_char"
|
960
960
|
- include: "#nested_braces_interpolated"
|
961
961
|
- include: "#variable"
|
962
962
|
- name: string.quoted.other.qq-bracket.perl
|
963
|
-
endCaptures:
|
964
|
-
"0":
|
963
|
+
endCaptures:
|
964
|
+
"0":
|
965
965
|
name: punctuation.definition.string.end.perl
|
966
966
|
begin: \bqq\s*\[
|
967
|
-
beginCaptures:
|
968
|
-
"0":
|
967
|
+
beginCaptures:
|
968
|
+
"0":
|
969
969
|
name: punctuation.definition.string.begin.perl
|
970
970
|
end: \]
|
971
|
-
patterns:
|
971
|
+
patterns:
|
972
972
|
- include: "#escaped_char"
|
973
973
|
- include: "#nested_brackets_interpolated"
|
974
974
|
- include: "#variable"
|
975
975
|
- name: string.quoted.other.qq-ltgt.perl
|
976
|
-
endCaptures:
|
977
|
-
"0":
|
976
|
+
endCaptures:
|
977
|
+
"0":
|
978
978
|
name: punctuation.definition.string.end.perl
|
979
979
|
begin: \bqq\s*\<
|
980
|
-
beginCaptures:
|
981
|
-
"0":
|
980
|
+
beginCaptures:
|
981
|
+
"0":
|
982
982
|
name: punctuation.definition.string.begin.perl
|
983
983
|
end: \>
|
984
|
-
patterns:
|
984
|
+
patterns:
|
985
985
|
- include: "#escaped_char"
|
986
986
|
- include: "#nested_ltgt_interpolated"
|
987
987
|
- include: "#variable"
|
988
988
|
- name: string.interpolated.qx-paren.perl
|
989
|
-
endCaptures:
|
990
|
-
"0":
|
989
|
+
endCaptures:
|
990
|
+
"0":
|
991
991
|
name: punctuation.definition.string.end.perl
|
992
992
|
begin: \bqx\s*\(
|
993
|
-
beginCaptures:
|
994
|
-
"0":
|
993
|
+
beginCaptures:
|
994
|
+
"0":
|
995
995
|
name: punctuation.definition.string.begin.perl
|
996
996
|
end: \)
|
997
|
-
patterns:
|
997
|
+
patterns:
|
998
998
|
- include: "#escaped_char"
|
999
999
|
- include: "#nested_parens_interpolated"
|
1000
1000
|
- include: "#variable"
|
1001
1001
|
- name: string.interpolated.qx-brace.perl
|
1002
|
-
endCaptures:
|
1003
|
-
"0":
|
1002
|
+
endCaptures:
|
1003
|
+
"0":
|
1004
1004
|
name: punctuation.definition.string.end.perl
|
1005
1005
|
begin: \bqx\s*\{
|
1006
|
-
beginCaptures:
|
1007
|
-
"0":
|
1006
|
+
beginCaptures:
|
1007
|
+
"0":
|
1008
1008
|
name: punctuation.definition.string.begin.perl
|
1009
1009
|
end: \}
|
1010
|
-
patterns:
|
1010
|
+
patterns:
|
1011
1011
|
- include: "#escaped_char"
|
1012
1012
|
- include: "#nested_braces_interpolated"
|
1013
1013
|
- include: "#variable"
|
1014
1014
|
- name: string.interpolated.qx-bracket.perl
|
1015
|
-
endCaptures:
|
1016
|
-
"0":
|
1015
|
+
endCaptures:
|
1016
|
+
"0":
|
1017
1017
|
name: punctuation.definition.string.end.perl
|
1018
1018
|
begin: \bqx\s*\[
|
1019
|
-
beginCaptures:
|
1020
|
-
"0":
|
1019
|
+
beginCaptures:
|
1020
|
+
"0":
|
1021
1021
|
name: punctuation.definition.string.begin.perl
|
1022
1022
|
end: \]
|
1023
|
-
patterns:
|
1023
|
+
patterns:
|
1024
1024
|
- include: "#escaped_char"
|
1025
1025
|
- include: "#nested_brackets_interpolated"
|
1026
1026
|
- include: "#variable"
|
1027
1027
|
- name: string.interpolated.qx-ltgt.perl
|
1028
|
-
endCaptures:
|
1029
|
-
"0":
|
1028
|
+
endCaptures:
|
1029
|
+
"0":
|
1030
1030
|
name: punctuation.definition.string.end.perl
|
1031
1031
|
begin: \bqx\s*\<
|
1032
|
-
beginCaptures:
|
1033
|
-
"0":
|
1032
|
+
beginCaptures:
|
1033
|
+
"0":
|
1034
1034
|
name: punctuation.definition.string.begin.perl
|
1035
1035
|
end: \>
|
1036
|
-
patterns:
|
1036
|
+
patterns:
|
1037
1037
|
- include: "#escaped_char"
|
1038
1038
|
- include: "#nested_ltgt_interpolated"
|
1039
1039
|
- include: "#variable"
|
1040
1040
|
- name: string.quoted.other.q-paren.perl
|
1041
|
-
endCaptures:
|
1042
|
-
"0":
|
1041
|
+
endCaptures:
|
1042
|
+
"0":
|
1043
1043
|
name: punctuation.definition.string.end.perl
|
1044
1044
|
begin: \bqw?\s*\(
|
1045
|
-
beginCaptures:
|
1046
|
-
"0":
|
1045
|
+
beginCaptures:
|
1046
|
+
"0":
|
1047
1047
|
name: punctuation.definition.string.begin.perl
|
1048
1048
|
end: \)
|
1049
|
-
patterns:
|
1049
|
+
patterns:
|
1050
1050
|
- include: "#escaped_char"
|
1051
1051
|
- include: "#nested_parens"
|
1052
1052
|
- name: string.quoted.other.q-brace.perl
|
1053
|
-
endCaptures:
|
1054
|
-
"0":
|
1053
|
+
endCaptures:
|
1054
|
+
"0":
|
1055
1055
|
name: punctuation.definition.string.end.perl
|
1056
1056
|
begin: \bqw?\s*\{
|
1057
|
-
beginCaptures:
|
1058
|
-
"0":
|
1057
|
+
beginCaptures:
|
1058
|
+
"0":
|
1059
1059
|
name: punctuation.definition.string.begin.perl
|
1060
1060
|
end: \}
|
1061
|
-
patterns:
|
1061
|
+
patterns:
|
1062
1062
|
- include: "#escaped_char"
|
1063
1063
|
- include: "#nested_braces"
|
1064
1064
|
- name: string.quoted.other.q-bracket.perl
|
1065
|
-
endCaptures:
|
1066
|
-
"0":
|
1065
|
+
endCaptures:
|
1066
|
+
"0":
|
1067
1067
|
name: punctuation.definition.string.end.perl
|
1068
1068
|
begin: \bqw?\s*\[
|
1069
|
-
beginCaptures:
|
1070
|
-
"0":
|
1069
|
+
beginCaptures:
|
1070
|
+
"0":
|
1071
1071
|
name: punctuation.definition.string.begin.perl
|
1072
1072
|
end: \]
|
1073
|
-
patterns:
|
1073
|
+
patterns:
|
1074
1074
|
- include: "#escaped_char"
|
1075
1075
|
- include: "#nested_brackets"
|
1076
1076
|
- name: string.quoted.other.q-ltgt.perl
|
1077
|
-
endCaptures:
|
1078
|
-
"0":
|
1077
|
+
endCaptures:
|
1078
|
+
"0":
|
1079
1079
|
name: punctuation.definition.string.end.perl
|
1080
1080
|
begin: \bqw?\s*\<
|
1081
|
-
beginCaptures:
|
1082
|
-
"0":
|
1081
|
+
beginCaptures:
|
1082
|
+
"0":
|
1083
1083
|
name: punctuation.definition.string.begin.perl
|
1084
1084
|
end: \>
|
1085
|
-
patterns:
|
1085
|
+
patterns:
|
1086
1086
|
- include: "#escaped_char"
|
1087
1087
|
- include: "#nested_ltgt"
|
1088
1088
|
- name: string.unquoted.program-block.perl
|
1089
|
-
endCaptures:
|
1090
|
-
"0":
|
1089
|
+
endCaptures:
|
1090
|
+
"0":
|
1091
1091
|
name: punctuation.definition.string.end.perl
|
1092
1092
|
begin: ^__\w+__
|
1093
|
-
beginCaptures:
|
1094
|
-
"0":
|
1093
|
+
beginCaptures:
|
1094
|
+
"0":
|
1095
1095
|
name: punctuation.definition.string.begin.perl
|
1096
1096
|
end: $
|
1097
1097
|
- name: meta.format.perl
|
1098
1098
|
begin: \b(format)\s+([A-Za-z]+)\s*=
|
1099
|
-
beginCaptures:
|
1100
|
-
"1":
|
1099
|
+
beginCaptures:
|
1100
|
+
"1":
|
1101
1101
|
name: support.function.perl
|
1102
|
-
"2":
|
1102
|
+
"2":
|
1103
1103
|
name: entity.name.function.format.perl
|
1104
1104
|
end: ^\.\s*$
|
1105
|
-
patterns:
|
1105
|
+
patterns:
|
1106
1106
|
- include: "#line_comment"
|
1107
1107
|
- include: "#variable"
|
1108
1108
|
- name: support.function.perl
|
1109
1109
|
match: \b(ARGV|DATA|ENV|SIG|STDERR|STDIN|STDOUT|atan2|bind|binmode|bless|caller|chdir|chmod|chomp|chop|chown|chr|chroot|close|closedir|cmp|connect|cos|crypt|dbmclose|dbmopen|defined|delete|dump|each|endgrent|endhostent|endnetent|endprotoent|endpwent|endservent|eof|eq|eval|exec|exists|exp|fcntl|fileno|flock|fork|format|formline|ge|getc|getgrent|getgrgid|getgrnam|gethostbyaddr|gethostbyname|gethostent|getlogin|getnetbyaddr|getnetbyname|getnetent|getpeername|getpgrp|getppid|getpriority|getprotobyname|getprotobynumber|getprotoent|getpwent|getpwnam|getpwuid|getservbyname|getservbyport|getservent|getsockname|getsockopt|glob|gmtime|grep|gt|hex|import|index|int|ioctl|join|keys|kill|lc|lcfirst|le|length|link|listen|local|localtime|log|lstat|lt|m|map|mkdir|msgctl|msgget|msgrcv|msgsnd|ne|no|oct|open|opendir|ord|pack|pipe|pop|pos|print|printf|push|q|qq|quotemeta|qw|qx|rand|read|readdir|readlink|recv|ref|rename|reset|reverse|rewinddir|rindex|rmdir|s|scalar|seek|seekdir|semctl|semget|semop|send|setgrent|sethostent|setnetent|setpgrp|setpriority|setprotoent|setpwent|setservent|setsockopt|shift|shmctl|shmget|shmread|shmwrite|shutdown|sin|sleep|socket|socketpair|sort|splice|split|sprintf|sqrt|srand|stat|study|substr|symlink|syscall|sysopen|sysread|system|syswrite|tell|telldir|tie|tied|time|times|tr|truncate|uc|ucfirst|umask|undef|unlink|unpack|unshift|untie|utime|values|vec|waitpid|wantarray|warn|write|y|q|qw|qq|qx)\b
|
1110
1110
|
foldingStopMarker: (\*/|^\s*(\}|\]|\)))
|
1111
|
-
keyEquivalent: ^~P
|
1112
|
-
comment: |
|
1113
|
-
|
1114
|
-
TODO: Include RegExp syntax
|
1115
|
-
|
1111
|
+
keyEquivalent: ^~P
|