github-linguist 6.0.1 → 6.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/grammars/annotation.liquidhaskell.haskell.json +13 -4
- data/grammars/hint.haskell.json +13 -4
- data/grammars/hint.message.haskell.json +13 -4
- data/grammars/hint.type.haskell.json +13 -4
- data/grammars/source.angelscript.json +1 -1
- data/grammars/source.ballerina.json +25 -2
- data/grammars/source.batchfile.json +69 -38
- data/grammars/source.c.json +1 -1
- data/grammars/source.clarion.json +4 -4
- data/grammars/source.cs.json +3952 -780
- data/grammars/source.elixir.json +7 -7
- data/grammars/source.fortran.json +38 -35
- data/grammars/source.fortran.modern.json +6 -6
- data/grammars/source.graphql.json +55 -2
- data/grammars/source.haskell.json +13 -4
- data/grammars/source.hsig.json +13 -4
- data/grammars/source.hx.json +2309 -0
- data/grammars/source.hxml.json +37 -5
- data/grammars/source.isabelle.theory.json +7 -7
- data/grammars/source.js.json +39 -54
- data/grammars/source.js.regexp.json +11 -5
- data/grammars/source.julia.json +16 -5
- data/grammars/{source.Kotlin.json → source.kotlin.json} +118 -33
- data/grammars/source.mathematica.json +0 -1
- data/grammars/source.meson.json +4 -0
- data/grammars/source.mupad.json +36 -12
- data/grammars/source.netlinx.erb.json +1 -2
- data/grammars/source.netlinx.json +0 -3
- data/grammars/source.nextflow.json +7 -7
- data/grammars/source.perl.json +1 -1
- data/grammars/source.renpy.json +436 -648
- data/grammars/source.scala.json +133 -87
- data/grammars/source.sed.json +1520 -0
- data/grammars/source.shell.json +17 -17
- data/grammars/source.solidity.json +1 -1
- data/grammars/source.swift.json +1 -1
- data/grammars/source.terraform.json +1 -1
- data/grammars/source.ts.json +493 -122
- data/grammars/source.tsx.json +568 -191
- data/grammars/source.x86.json +295 -0
- data/grammars/source.yaml.json +41 -21
- data/grammars/source.yara.json +1 -1
- data/grammars/text.haml.json +15 -0
- data/grammars/text.html.creole.json +1 -1
- data/grammars/text.html.php.blade.json +2 -2
- data/grammars/text.html.php.json +55 -134
- data/grammars/text.html.smarty.json +25 -1
- data/grammars/text.html.vue.json +0 -6
- data/grammars/text.restructuredtext.json +110 -17
- data/grammars/text.tex.latex.haskell.json +13 -4
- data/lib/linguist/documentation.yml +1 -0
- data/lib/linguist/generated.rb +9 -1
- data/lib/linguist/heuristics.rb +2 -0
- data/lib/linguist/language.rb +0 -8
- data/lib/linguist/languages.json +1 -1
- data/lib/linguist/languages.yml +103 -7
- data/lib/linguist/linguist.bundle +0 -0
- data/lib/linguist/samples.json +1221 -262
- data/lib/linguist/shebang.rb +7 -4
- data/lib/linguist/strategy/extension.rb +15 -2
- data/lib/linguist/strategy/filename.rb +15 -2
- data/lib/linguist/vendor.yml +7 -0
- data/lib/linguist/version.rb +1 -1
- metadata +17 -19
- data/grammars/source.erazor.json +0 -118
- data/grammars/source.haxe.2.json +0 -1267
- data/grammars/source.hss.1.json +0 -442
- data/grammars/source.nmml.json +0 -81
- data/grammars/source.sbt.json +0 -39
data/grammars/source.scala.json
CHANGED
@@ -14,18 +14,11 @@
|
|
14
14
|
"patterns": [
|
15
15
|
{
|
16
16
|
"include": "#block-comments"
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"match": "(?x)\n\t\t\t(?! /\\*)\n\t\t\t(?! \\*/)\n\t\t "
|
17
20
|
}
|
18
|
-
]
|
19
|
-
"beginCaptures": {
|
20
|
-
"1": {
|
21
|
-
"name": "punctuation.definition.comment.begin.scala"
|
22
|
-
}
|
23
|
-
},
|
24
|
-
"endCaptures": {
|
25
|
-
"1": {
|
26
|
-
"name": "punctuation.definition.comment.end.scala"
|
27
|
-
}
|
28
|
-
}
|
21
|
+
]
|
29
22
|
},
|
30
23
|
"char-literal": {
|
31
24
|
"name": "constant.character.literal.scala",
|
@@ -62,6 +55,9 @@
|
|
62
55
|
},
|
63
56
|
"code": {
|
64
57
|
"patterns": [
|
58
|
+
{
|
59
|
+
"include": "#script-header"
|
60
|
+
},
|
65
61
|
{
|
66
62
|
"include": "#storage-modifiers"
|
67
63
|
},
|
@@ -95,11 +91,17 @@
|
|
95
91
|
{
|
96
92
|
"include": "#scala-symbol"
|
97
93
|
},
|
94
|
+
{
|
95
|
+
"include": "#scala-quoted"
|
96
|
+
},
|
97
|
+
{
|
98
|
+
"include": "#special-identifier"
|
99
|
+
},
|
98
100
|
{
|
99
101
|
"include": "#char-literal"
|
100
102
|
},
|
101
103
|
{
|
102
|
-
"include": "#empty-
|
104
|
+
"include": "#empty-parentheses"
|
103
105
|
},
|
104
106
|
{
|
105
107
|
"include": "#parameter-list"
|
@@ -131,7 +133,7 @@
|
|
131
133
|
},
|
132
134
|
{
|
133
135
|
"name": "comment.block.documentation.scala",
|
134
|
-
"begin": "^\\s*(/\\*\\*)",
|
136
|
+
"begin": "^\\s*(/\\*\\*)(?!/)",
|
135
137
|
"end": "\\*/",
|
136
138
|
"patterns": [
|
137
139
|
{
|
@@ -152,7 +154,7 @@
|
|
152
154
|
"name": "keyword.other.documentation.scaladoc.scala"
|
153
155
|
},
|
154
156
|
"2": {
|
155
|
-
"name": "entity.name.
|
157
|
+
"name": "entity.name.class"
|
156
158
|
}
|
157
159
|
}
|
158
160
|
},
|
@@ -167,7 +169,7 @@
|
|
167
169
|
"name": "punctuation.definition.documentation.link.scala"
|
168
170
|
},
|
169
171
|
"2": {
|
170
|
-
"name": "entity.
|
172
|
+
"name": "entity.other.documentation.link.scala"
|
171
173
|
},
|
172
174
|
"3": {
|
173
175
|
"name": "punctuation.definition.documentation.link.scala"
|
@@ -187,16 +189,33 @@
|
|
187
189
|
}
|
188
190
|
},
|
189
191
|
{
|
190
|
-
"
|
192
|
+
"name": "comment.block.scala",
|
193
|
+
"begin": "/\\*",
|
194
|
+
"end": "\\*/",
|
195
|
+
"captures": {
|
196
|
+
"0": {
|
197
|
+
"name": "punctuation.definition.comment.scala"
|
198
|
+
}
|
199
|
+
}
|
191
200
|
},
|
192
201
|
{
|
193
|
-
"
|
194
|
-
"
|
202
|
+
"begin": "(^[ \\t]+)?(?=//)",
|
203
|
+
"end": "(?!\\G)",
|
204
|
+
"patterns": [
|
205
|
+
{
|
206
|
+
"name": "comment.line.double-slash.scala",
|
207
|
+
"begin": "//",
|
208
|
+
"end": "\\n",
|
209
|
+
"beginCaptures": {
|
210
|
+
"0": {
|
211
|
+
"name": "punctuation.definition.comment.scala"
|
212
|
+
}
|
213
|
+
}
|
214
|
+
}
|
215
|
+
],
|
216
|
+
"beginCaptures": {
|
195
217
|
"1": {
|
196
|
-
"name": "comment.
|
197
|
-
},
|
198
|
-
"2": {
|
199
|
-
"name": "punctuation.definition.comment.scala"
|
218
|
+
"name": "punctuation.whitespace.comment.leading.scala"
|
200
219
|
}
|
201
220
|
}
|
202
221
|
}
|
@@ -210,7 +229,7 @@
|
|
210
229
|
},
|
211
230
|
{
|
212
231
|
"name": "constant.numeric.scala",
|
213
|
-
"match": "\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]
|
232
|
+
"match": "\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.[0-9]+)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?|[0-9]+)([LlFfDd]|UL|ul)?\\b"
|
214
233
|
},
|
215
234
|
{
|
216
235
|
"name": "variable.language.scala",
|
@@ -229,27 +248,27 @@
|
|
229
248
|
"declarations": {
|
230
249
|
"patterns": [
|
231
250
|
{
|
232
|
-
"match": "(?x)\n\t\t\t\t\t\t\\b(def)\\s+\n\t\t\t\t\t\t(`[^`]+`|[_$a-zA-Z][_$a-zA-Z0-9]*(?:_[^\\
|
251
|
+
"match": "(?x)\n\t\t\t\t\t\t\\b(def)\\s+\n\t\t\t\t\t\t(`[^`]+`|[_$a-zA-Z][_$a-zA-Z0-9]*(?:_[^\\t .,;()\\[\\]{}'\"`\\w])(?=[(\\t ])|[_$a-zA-Z][_$a-zA-Z0-9]*|[-?~\u003e\u003c^+*%:!#|/@\\\\]+)",
|
233
252
|
"captures": {
|
234
253
|
"1": {
|
235
|
-
"name": "keyword.
|
254
|
+
"name": "keyword.declaration.scala"
|
236
255
|
},
|
237
256
|
"2": {
|
238
|
-
"name": "entity.name.function.declaration
|
257
|
+
"name": "entity.name.function.declaration"
|
239
258
|
}
|
240
259
|
}
|
241
260
|
},
|
242
261
|
{
|
243
|
-
"match": "(
|
262
|
+
"match": "(case)?\\b(class|trait|object)\\s+([^\\s\\{\\(\\[]+)",
|
244
263
|
"captures": {
|
245
264
|
"1": {
|
246
|
-
"name": "
|
265
|
+
"name": "keyword.declaration.scala"
|
247
266
|
},
|
248
267
|
"2": {
|
249
|
-
"name": "
|
268
|
+
"name": "keyword.declaration.scala"
|
250
269
|
},
|
251
270
|
"3": {
|
252
|
-
"name": "entity.name.
|
271
|
+
"name": "entity.name.class.declaration"
|
253
272
|
}
|
254
273
|
}
|
255
274
|
},
|
@@ -257,83 +276,86 @@
|
|
257
276
|
"match": "\\b(type)\\s+(`[^`]+`|[_$a-zA-Z][_$a-zA-Z0-9]*(?:_[^\\s])(?=[\\t ])|[_$a-zA-Z][_$a-zA-Z0-9]*|[-?~\u003e\u003c^+*%:!#|/@\\\\]+)",
|
258
277
|
"captures": {
|
259
278
|
"1": {
|
260
|
-
"name": "keyword.
|
279
|
+
"name": "keyword.declaration.scala"
|
261
280
|
},
|
262
281
|
"2": {
|
263
|
-
"name": "entity.name.type.
|
282
|
+
"name": "entity.name.type.declaration"
|
264
283
|
}
|
265
284
|
}
|
266
285
|
},
|
267
286
|
{
|
268
|
-
"match": "\\b(
|
287
|
+
"match": "\\b(val)\\s+(?:([A-Z][_a-zA-Z0-9]*))\\b",
|
269
288
|
"captures": {
|
270
289
|
"1": {
|
271
|
-
"name": "
|
290
|
+
"name": "keyword.declaration.stable.scala"
|
272
291
|
},
|
273
292
|
"2": {
|
274
|
-
"name": "
|
275
|
-
},
|
276
|
-
"3": {
|
277
|
-
"name": "entity.name.type.val.declaration.scala"
|
293
|
+
"name": "constant.other.declaration.scala"
|
278
294
|
}
|
279
295
|
}
|
280
296
|
},
|
281
297
|
{
|
282
|
-
"match": "\\b(
|
298
|
+
"match": "\\b(?:(val)|(var))\\s+(?:(`[^`]+`|[_$a-zA-Z][_$a-zA-Z0-9]*(?:_[^\\t .,;()\\[\\]{}'\"`\\w])(?=[\\t ])|[_$a-zA-Z][_$a-zA-Z0-9]*|[-?~\u003e\u003c^+*%:!#|/@\\\\]+)|(?=\\())",
|
283
299
|
"captures": {
|
284
300
|
"1": {
|
285
|
-
"name": "
|
301
|
+
"name": "keyword.declaration.stable.scala"
|
286
302
|
},
|
287
303
|
"2": {
|
288
|
-
"name": "
|
304
|
+
"name": "keyword.declaration.volatile.scala"
|
289
305
|
},
|
290
306
|
"3": {
|
291
|
-
"name": "
|
307
|
+
"name": "variable.other.declaration.scala"
|
292
308
|
}
|
293
309
|
}
|
294
310
|
},
|
295
311
|
{
|
296
|
-
"
|
297
|
-
"match": "\\b(package)\\s+([\\w\\.]+)",
|
312
|
+
"match": "\\b(package)\\s+(object)\\s+([^\\s\\{\\(\\[]+)",
|
298
313
|
"captures": {
|
299
314
|
"1": {
|
300
|
-
"name": "
|
315
|
+
"name": "keyword.other.scoping.scala"
|
301
316
|
},
|
302
317
|
"2": {
|
303
|
-
"name": "
|
304
|
-
}
|
305
|
-
}
|
306
|
-
}
|
307
|
-
]
|
308
|
-
},
|
309
|
-
"empty-blocks": {
|
310
|
-
"patterns": [
|
311
|
-
{
|
312
|
-
"name": "meta.parentheses.scala",
|
313
|
-
"match": "(\\()(\\))",
|
314
|
-
"captures": {
|
315
|
-
"1": {
|
316
|
-
"name": "punctuation.definition.parentheses.begin.scala"
|
318
|
+
"name": "keyword.declaration.scala"
|
317
319
|
},
|
318
|
-
"
|
319
|
-
"name": "
|
320
|
+
"3": {
|
321
|
+
"name": "entity.name.class.declaration"
|
320
322
|
}
|
321
323
|
}
|
322
324
|
},
|
323
325
|
{
|
324
|
-
"name": "meta.
|
325
|
-
"
|
326
|
-
"
|
327
|
-
|
328
|
-
|
326
|
+
"name": "meta.package.scala",
|
327
|
+
"begin": "\\b(package)\\s+",
|
328
|
+
"end": "(?\u003c=[\\n;])",
|
329
|
+
"patterns": [
|
330
|
+
{
|
331
|
+
"include": "#comments"
|
329
332
|
},
|
330
|
-
|
331
|
-
"name": "
|
333
|
+
{
|
334
|
+
"name": "entity.name.package.scala",
|
335
|
+
"match": "(`[^`]+`|[_$a-zA-Z][_$a-zA-Z0-9]*)"
|
336
|
+
},
|
337
|
+
{
|
338
|
+
"name": "punctuation.definition.package",
|
339
|
+
"match": "\\."
|
340
|
+
}
|
341
|
+
],
|
342
|
+
"beginCaptures": {
|
343
|
+
"1": {
|
344
|
+
"name": "keyword.other.import.scala"
|
332
345
|
}
|
333
346
|
}
|
334
347
|
}
|
335
348
|
]
|
336
349
|
},
|
350
|
+
"empty-parentheses": {
|
351
|
+
"name": "meta.parentheses.scala",
|
352
|
+
"match": "(\\(\\))",
|
353
|
+
"captures": {
|
354
|
+
"1": {
|
355
|
+
"name": "meta.bracket.scala"
|
356
|
+
}
|
357
|
+
}
|
358
|
+
},
|
337
359
|
"imports": {
|
338
360
|
"name": "meta.import.scala",
|
339
361
|
"begin": "\\b(import)\\s+",
|
@@ -343,12 +365,12 @@
|
|
343
365
|
"include": "#comments"
|
344
366
|
},
|
345
367
|
{
|
346
|
-
"name": "
|
347
|
-
"match": "([
|
368
|
+
"name": "entity.name.import.scala",
|
369
|
+
"match": "(`[^`]+`|[_$a-zA-Z][_$a-zA-Z0-9]*)"
|
348
370
|
},
|
349
371
|
{
|
350
|
-
"name": "
|
351
|
-
"match": "
|
372
|
+
"name": "punctuation.definition.import",
|
373
|
+
"match": "\\."
|
352
374
|
},
|
353
375
|
{
|
354
376
|
"name": "meta.import.selector.scala",
|
@@ -356,21 +378,21 @@
|
|
356
378
|
"end": "}",
|
357
379
|
"patterns": [
|
358
380
|
{
|
359
|
-
"match": "(?x) \\s*\n\t\t\t\t([
|
381
|
+
"match": "(?x) \\s*\n\t\t\t\t (`[^`]+`|[_$a-zA-Z][_$a-zA-Z0-9]*) \\s*\n\t\t\t\t (=\u003e) \\s*\n\t\t\t\t (`[^`]+`|[_$a-zA-Z][_$a-zA-Z0-9]*) \\s*\n\t\t\t ",
|
360
382
|
"captures": {
|
361
383
|
"1": {
|
362
|
-
"name": "
|
384
|
+
"name": "entity.name.import.renamed-from.scala"
|
363
385
|
},
|
364
386
|
"2": {
|
365
|
-
"name": "keyword.
|
387
|
+
"name": "keyword.other.arrow.scala"
|
366
388
|
},
|
367
389
|
"3": {
|
368
|
-
"name": "
|
390
|
+
"name": "entity.name.import.renamed-to.scala"
|
369
391
|
}
|
370
392
|
}
|
371
393
|
},
|
372
394
|
{
|
373
|
-
"name": "
|
395
|
+
"name": "entity.name.import.scala",
|
374
396
|
"match": "([^\\s.,}]+)"
|
375
397
|
}
|
376
398
|
],
|
@@ -388,7 +410,7 @@
|
|
388
410
|
],
|
389
411
|
"beginCaptures": {
|
390
412
|
"1": {
|
391
|
-
"name": "keyword.
|
413
|
+
"name": "keyword.other.import.scala"
|
392
414
|
}
|
393
415
|
}
|
394
416
|
},
|
@@ -398,7 +420,7 @@
|
|
398
420
|
"match": "(extends|with)\\s+([^\\s\\{\\(\\[\\]]+)",
|
399
421
|
"captures": {
|
400
422
|
"1": {
|
401
|
-
"name": "
|
423
|
+
"name": "keyword.declaration.scala"
|
402
424
|
},
|
403
425
|
"2": {
|
404
426
|
"name": "entity.other.inherited-class.scala"
|
@@ -408,13 +430,13 @@
|
|
408
430
|
]
|
409
431
|
},
|
410
432
|
"initialization": {
|
411
|
-
"match": "\\b(new)\\s+([^\\s
|
433
|
+
"match": "\\b(new)\\s+([^\\s,\\{\\}\\(\\)\\[\\]]+)",
|
412
434
|
"captures": {
|
413
435
|
"1": {
|
414
|
-
"name": "keyword.
|
436
|
+
"name": "keyword.declaration.scala"
|
415
437
|
},
|
416
438
|
"2": {
|
417
|
-
"name": "entity.name.
|
439
|
+
"name": "entity.name.class"
|
418
440
|
}
|
419
441
|
}
|
420
442
|
},
|
@@ -460,6 +482,14 @@
|
|
460
482
|
},
|
461
483
|
"meta-brackets": {
|
462
484
|
"patterns": [
|
485
|
+
{
|
486
|
+
"name": "punctuation.section.block.begin.scala",
|
487
|
+
"match": "\\{"
|
488
|
+
},
|
489
|
+
{
|
490
|
+
"name": "punctuation.section.block.end.scala",
|
491
|
+
"match": "\\}"
|
492
|
+
},
|
463
493
|
{
|
464
494
|
"name": "meta.bracket.scala",
|
465
495
|
"match": "{|}|\\(|\\)|\\[|\\]"
|
@@ -493,22 +523,38 @@
|
|
493
523
|
"match": "(\\b([A-Z][\\w]*))",
|
494
524
|
"captures": {
|
495
525
|
"1": {
|
496
|
-
"name": "entity.name.
|
526
|
+
"name": "entity.name.class"
|
497
527
|
}
|
498
528
|
}
|
499
529
|
},
|
530
|
+
"scala-quoted": {
|
531
|
+
"name": "constant.other.quoted.scala",
|
532
|
+
"match": "'\\{'|'\\('|'\\['|'\\{|'\\(|'\\["
|
533
|
+
},
|
500
534
|
"scala-symbol": {
|
501
|
-
"name": "
|
502
|
-
"match": "'\\w+(?=[^'\\w])"
|
535
|
+
"name": "constant.other.symbol.scala",
|
536
|
+
"match": "'\\w+(?=[^'\\w]|$)"
|
537
|
+
},
|
538
|
+
"script-header": {
|
539
|
+
"name": "comment.block.shebang.scala",
|
540
|
+
"match": "^#!(.*)$",
|
541
|
+
"captures": {
|
542
|
+
"1": {
|
543
|
+
"name": "string.unquoted.shebang.scala"
|
544
|
+
}
|
545
|
+
}
|
546
|
+
},
|
547
|
+
"special-identifier": {
|
548
|
+
"match": "\\b[_$a-zA-Z][_$a-zA-Z0-9]*(?:_[^\\t .,;()\\[\\]{}'\"`\\w])"
|
503
549
|
},
|
504
550
|
"storage-modifiers": {
|
505
551
|
"patterns": [
|
506
552
|
{
|
507
|
-
"name": "storage.modifier.access
|
553
|
+
"name": "storage.modifier.access",
|
508
554
|
"match": "\\b(private\\[\\S+\\]|protected\\[\\S+\\]|private|protected)\\b"
|
509
555
|
},
|
510
556
|
{
|
511
|
-
"name": "storage.modifier.other
|
557
|
+
"name": "storage.modifier.other",
|
512
558
|
"match": "\\b(synchronized|@volatile|abstract|final|lazy|sealed|implicit|override|@transient|@native)\\b"
|
513
559
|
}
|
514
560
|
]
|
@@ -0,0 +1,1520 @@
|
|
1
|
+
{
|
2
|
+
"name": "sed",
|
3
|
+
"scopeName": "source.sed",
|
4
|
+
"patterns": [
|
5
|
+
{
|
6
|
+
"name": "comment.line.number-sign.hashbang.source.sed",
|
7
|
+
"begin": "\\A#!",
|
8
|
+
"end": "$",
|
9
|
+
"beginCaptures": {
|
10
|
+
"0": {
|
11
|
+
"name": "punctuation.definition.comment.source.sed"
|
12
|
+
}
|
13
|
+
}
|
14
|
+
},
|
15
|
+
{
|
16
|
+
"include": "#main"
|
17
|
+
}
|
18
|
+
],
|
19
|
+
"repository": {
|
20
|
+
"addresses": {
|
21
|
+
"patterns": [
|
22
|
+
{
|
23
|
+
"name": "meta.address.numbered.range.source.sed",
|
24
|
+
"match": "([0-9]+)\\s*(,)\\s*([0-9]+)(?:\\s*(!))?",
|
25
|
+
"captures": {
|
26
|
+
"1": {
|
27
|
+
"name": "constant.numeric.integer.start-index.source.sed"
|
28
|
+
},
|
29
|
+
"2": {
|
30
|
+
"name": "keyword.operator.address.range.comma.source.sed"
|
31
|
+
},
|
32
|
+
"3": {
|
33
|
+
"name": "constant.numeric.integer.end-index.source.sed"
|
34
|
+
},
|
35
|
+
"4": {
|
36
|
+
"name": "keyword.operator.logical.not.negation.source.sed"
|
37
|
+
}
|
38
|
+
}
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"name": "meta.address.numbered.range.step.gnu.source.sed",
|
42
|
+
"match": "([0-9]+)\\s*(~)\\s*([0-9]+)(?:\\s*(!))?",
|
43
|
+
"captures": {
|
44
|
+
"1": {
|
45
|
+
"name": "constant.numeric.integer.start-index.source.sed"
|
46
|
+
},
|
47
|
+
"2": {
|
48
|
+
"name": "keyword.operator.address.range.tilde.gnu.source.sed"
|
49
|
+
},
|
50
|
+
"3": {
|
51
|
+
"name": "constant.numeric.integer.step-size.source.sed"
|
52
|
+
},
|
53
|
+
"4": {
|
54
|
+
"name": "keyword.operator.logical.not.negation.source.sed"
|
55
|
+
}
|
56
|
+
}
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"name": "meta.address.numbered.source.sed",
|
60
|
+
"match": "([0-9]+)(?:\\s*(!))?",
|
61
|
+
"captures": {
|
62
|
+
"1": {
|
63
|
+
"name": "constant.numeric.integer.line-index.source.sed"
|
64
|
+
},
|
65
|
+
"2": {
|
66
|
+
"name": "keyword.operator.logical.not.negation.source.sed"
|
67
|
+
}
|
68
|
+
}
|
69
|
+
},
|
70
|
+
{
|
71
|
+
"name": "meta.address.last-line.source.sed",
|
72
|
+
"match": "\\$",
|
73
|
+
"captures": {
|
74
|
+
"0": {
|
75
|
+
"name": "constant.language.anchor.last-line.source.sed"
|
76
|
+
}
|
77
|
+
}
|
78
|
+
},
|
79
|
+
{
|
80
|
+
"name": "meta.address.pattern.source.sed",
|
81
|
+
"contentName": "string.regexp.address.source.sed",
|
82
|
+
"begin": "/",
|
83
|
+
"end": "(/)([IM]*)(?:\\s*(!))?|$",
|
84
|
+
"patterns": [
|
85
|
+
{
|
86
|
+
"include": "#regexp"
|
87
|
+
}
|
88
|
+
],
|
89
|
+
"beginCaptures": {
|
90
|
+
"0": {
|
91
|
+
"name": "punctuation.delimiter.pattern.begin.source.sed"
|
92
|
+
}
|
93
|
+
},
|
94
|
+
"endCaptures": {
|
95
|
+
"1": {
|
96
|
+
"name": "punctuation.delimiter.pattern.end.source.sed"
|
97
|
+
},
|
98
|
+
"2": {
|
99
|
+
"name": "meta.flags.source.sed",
|
100
|
+
"patterns": [
|
101
|
+
{
|
102
|
+
"include": "#flags"
|
103
|
+
}
|
104
|
+
]
|
105
|
+
},
|
106
|
+
"3": {
|
107
|
+
"name": "keyword.operator.logical.not.negation.source.sed"
|
108
|
+
}
|
109
|
+
}
|
110
|
+
},
|
111
|
+
{
|
112
|
+
"name": "meta.address.pattern.custom-delimiter.source.sed",
|
113
|
+
"contentName": "string.regexp.address.source.sed",
|
114
|
+
"begin": "\\\\(.)",
|
115
|
+
"end": "(\\1)([IM]*)(?:\\s*(!))?|$",
|
116
|
+
"patterns": [
|
117
|
+
{
|
118
|
+
"include": "#regexp"
|
119
|
+
}
|
120
|
+
],
|
121
|
+
"beginCaptures": {
|
122
|
+
"0": {
|
123
|
+
"name": "punctuation.delimiter.address.begin.source.sed"
|
124
|
+
}
|
125
|
+
},
|
126
|
+
"endCaptures": {
|
127
|
+
"1": {
|
128
|
+
"name": "punctuation.delimiter.address.end.source.sed"
|
129
|
+
},
|
130
|
+
"2": {
|
131
|
+
"name": "meta.modifier.flags.source.sed",
|
132
|
+
"patterns": [
|
133
|
+
{
|
134
|
+
"include": "#flags"
|
135
|
+
}
|
136
|
+
]
|
137
|
+
},
|
138
|
+
"3": {
|
139
|
+
"name": "keyword.operator.logical.not.negation.source.sed"
|
140
|
+
}
|
141
|
+
}
|
142
|
+
},
|
143
|
+
{
|
144
|
+
"match": "(,)(\\s*(?:(\\+)|(~)))?\\s*([0-9]*)(?:\\s*(!))?",
|
145
|
+
"captures": {
|
146
|
+
"1": {
|
147
|
+
"name": "keyword.operator.address.range.comma.source.sed"
|
148
|
+
},
|
149
|
+
"2": {
|
150
|
+
"name": "meta.address.range.nth-line.gnu.source.sed"
|
151
|
+
},
|
152
|
+
"3": {
|
153
|
+
"name": "keyword.operator.arithmetic.plus.gnu.source.sed"
|
154
|
+
},
|
155
|
+
"4": {
|
156
|
+
"name": "keyword.operator.arithmetic.tilde.gnu.source.sed"
|
157
|
+
},
|
158
|
+
"5": {
|
159
|
+
"name": "constant.numeric.integer.line-index.source.sed"
|
160
|
+
},
|
161
|
+
"6": {
|
162
|
+
"name": "keyword.operator.logical.not.negation.source.sed"
|
163
|
+
}
|
164
|
+
}
|
165
|
+
}
|
166
|
+
]
|
167
|
+
},
|
168
|
+
"braces": {
|
169
|
+
"name": "meta.group.source.sed",
|
170
|
+
"begin": "{",
|
171
|
+
"end": "}",
|
172
|
+
"patterns": [
|
173
|
+
{
|
174
|
+
"include": "#main"
|
175
|
+
}
|
176
|
+
],
|
177
|
+
"beginCaptures": {
|
178
|
+
"0": {
|
179
|
+
"name": "punctuation.section.scope.begin.source.sed"
|
180
|
+
}
|
181
|
+
},
|
182
|
+
"endCaptures": {
|
183
|
+
"0": {
|
184
|
+
"name": "punctuation.section.scope.end.source.sed"
|
185
|
+
}
|
186
|
+
}
|
187
|
+
},
|
188
|
+
"commands": {
|
189
|
+
"patterns": [
|
190
|
+
{
|
191
|
+
"name": "keyword.control.delete.command.source.sed",
|
192
|
+
"match": "[Dd]"
|
193
|
+
},
|
194
|
+
{
|
195
|
+
"name": "keyword.control.print.command.source.sed",
|
196
|
+
"match": "[Pp]"
|
197
|
+
},
|
198
|
+
{
|
199
|
+
"name": "keyword.control.replace-hold.command.source.sed",
|
200
|
+
"match": "[Hh]"
|
201
|
+
},
|
202
|
+
{
|
203
|
+
"name": "keyword.control.replace-pattern.command.source.sed",
|
204
|
+
"match": "[Gg]"
|
205
|
+
},
|
206
|
+
{
|
207
|
+
"name": "keyword.control.exchange.command.source.sed",
|
208
|
+
"match": "x"
|
209
|
+
},
|
210
|
+
{
|
211
|
+
"name": "keyword.control.print.filename.gnu.source.sed",
|
212
|
+
"match": "F"
|
213
|
+
},
|
214
|
+
{
|
215
|
+
"name": "keyword.control.skip.command.source.sed",
|
216
|
+
"match": "n"
|
217
|
+
},
|
218
|
+
{
|
219
|
+
"name": "keyword.control.print.newline.source.sed",
|
220
|
+
"match": "N"
|
221
|
+
},
|
222
|
+
{
|
223
|
+
"name": "keyword.control.print.line-number.source.sed",
|
224
|
+
"match": "="
|
225
|
+
},
|
226
|
+
{
|
227
|
+
"name": "keyword.control.zap.gnu.source.sed",
|
228
|
+
"match": "z"
|
229
|
+
},
|
230
|
+
{
|
231
|
+
"match": "(l)(?:\\s*([0-9]+))?",
|
232
|
+
"captures": {
|
233
|
+
"1": {
|
234
|
+
"name": "keyword.control.print.unambiguously.source.sed"
|
235
|
+
},
|
236
|
+
"2": {
|
237
|
+
"name": "variable.parameter.line-length.gnu.source.sed"
|
238
|
+
}
|
239
|
+
}
|
240
|
+
},
|
241
|
+
{
|
242
|
+
"match": "(?:(q)|(Q))(?:\\s*([0-9]+))?",
|
243
|
+
"captures": {
|
244
|
+
"1": {
|
245
|
+
"name": "keyword.control.quit.command.source.sed"
|
246
|
+
},
|
247
|
+
"2": {
|
248
|
+
"name": "keyword.control.quit.silently.command.gnu.source.sed"
|
249
|
+
},
|
250
|
+
"3": {
|
251
|
+
"name": "variable.parameter.exit-code.gnu.source.sed"
|
252
|
+
}
|
253
|
+
}
|
254
|
+
},
|
255
|
+
{
|
256
|
+
"match": "(?:(r)|(R))\\s*(\\S.*)$",
|
257
|
+
"captures": {
|
258
|
+
"1": {
|
259
|
+
"name": "keyword.control.read.file.command.source.sed"
|
260
|
+
},
|
261
|
+
"2": {
|
262
|
+
"name": "keyword.control.read.file.line.command.gnu.source.sed"
|
263
|
+
},
|
264
|
+
"3": {
|
265
|
+
"name": "string.unquoted.filename.source.sed"
|
266
|
+
}
|
267
|
+
}
|
268
|
+
},
|
269
|
+
{
|
270
|
+
"match": "(?:(w)|(W))\\s*(\\S.*)$",
|
271
|
+
"captures": {
|
272
|
+
"1": {
|
273
|
+
"name": "keyword.control.write.file.command.source.sed"
|
274
|
+
},
|
275
|
+
"2": {
|
276
|
+
"name": "keyword.control.write.file.command.gnu.source.sed"
|
277
|
+
},
|
278
|
+
"3": {
|
279
|
+
"name": "string.unquoted.filename.source.sed"
|
280
|
+
}
|
281
|
+
}
|
282
|
+
},
|
283
|
+
{
|
284
|
+
"name": "meta.label.source.sed",
|
285
|
+
"match": "(:)\\s*([^\\s;#}]+)",
|
286
|
+
"captures": {
|
287
|
+
"1": {
|
288
|
+
"name": "storage.type.function.label.source.sed"
|
289
|
+
},
|
290
|
+
"2": {
|
291
|
+
"name": "entity.name.function.label.source.sed"
|
292
|
+
}
|
293
|
+
}
|
294
|
+
},
|
295
|
+
{
|
296
|
+
"name": "meta.branch.source.sed",
|
297
|
+
"match": "(?:([bt])|(T))(?:\\s*([^\\s;#}]+))?",
|
298
|
+
"captures": {
|
299
|
+
"1": {
|
300
|
+
"name": "keyword.control.branch.source.sed"
|
301
|
+
},
|
302
|
+
"2": {
|
303
|
+
"name": "keyword.control.branch.inverse.gnu.source.sed"
|
304
|
+
},
|
305
|
+
"3": {
|
306
|
+
"name": "entity.name.function.label.source.sed"
|
307
|
+
}
|
308
|
+
}
|
309
|
+
},
|
310
|
+
{
|
311
|
+
"name": "meta.execution.source.sed",
|
312
|
+
"contentName": "string.unquoted.herestring.source.sed",
|
313
|
+
"begin": "(e)\\s*",
|
314
|
+
"end": "$",
|
315
|
+
"patterns": [
|
316
|
+
{
|
317
|
+
"include": "#escape"
|
318
|
+
}
|
319
|
+
],
|
320
|
+
"beginCaptures": {
|
321
|
+
"1": {
|
322
|
+
"name": "keyword.control.execute.source.sed"
|
323
|
+
}
|
324
|
+
}
|
325
|
+
},
|
326
|
+
{
|
327
|
+
"match": "(v)(?:\\s*([^\\s;#}]+))?",
|
328
|
+
"captures": {
|
329
|
+
"1": {
|
330
|
+
"name": "keyword.control.version.gnu.source.sed"
|
331
|
+
},
|
332
|
+
"2": {
|
333
|
+
"name": "constant.other.version-string.source.sed"
|
334
|
+
}
|
335
|
+
}
|
336
|
+
}
|
337
|
+
]
|
338
|
+
},
|
339
|
+
"comment": {
|
340
|
+
"patterns": [
|
341
|
+
{
|
342
|
+
"contentName": "comment.line.number-sign.source.sed",
|
343
|
+
"begin": "\\A(#)n",
|
344
|
+
"end": "$",
|
345
|
+
"beginCaptures": {
|
346
|
+
"0": {
|
347
|
+
"name": "keyword.control.directive.no-autoprint.source.sed"
|
348
|
+
},
|
349
|
+
"1": {
|
350
|
+
"name": "punctuation.definition.directive.source.sed"
|
351
|
+
}
|
352
|
+
}
|
353
|
+
},
|
354
|
+
{
|
355
|
+
"name": "comment.line.number-sign.source.sed",
|
356
|
+
"begin": "#",
|
357
|
+
"end": "$",
|
358
|
+
"beginCaptures": {
|
359
|
+
"0": {
|
360
|
+
"name": "punctuation.definition.comment.source.sed"
|
361
|
+
}
|
362
|
+
}
|
363
|
+
}
|
364
|
+
]
|
365
|
+
},
|
366
|
+
"escape": {
|
367
|
+
"patterns": [
|
368
|
+
{
|
369
|
+
"name": "constant.character.escape.newline.source.sed",
|
370
|
+
"begin": "\\\\$\\s*",
|
371
|
+
"end": "^"
|
372
|
+
},
|
373
|
+
{
|
374
|
+
"name": "constant.character.tab.source.sed",
|
375
|
+
"match": "\\\\t"
|
376
|
+
},
|
377
|
+
{
|
378
|
+
"name": "constant.character.newline.source.sed",
|
379
|
+
"match": "\\\\n"
|
380
|
+
},
|
381
|
+
{
|
382
|
+
"name": "constant.character.escape.source.sed",
|
383
|
+
"match": "\\\\."
|
384
|
+
}
|
385
|
+
]
|
386
|
+
},
|
387
|
+
"flags": {
|
388
|
+
"patterns": [
|
389
|
+
{
|
390
|
+
"name": "keyword.operator.modifier.global.source.sed",
|
391
|
+
"match": "g"
|
392
|
+
},
|
393
|
+
{
|
394
|
+
"name": "keyword.operator.modifier.print.source.sed",
|
395
|
+
"match": "p"
|
396
|
+
},
|
397
|
+
{
|
398
|
+
"name": "keyword.operator.modifier.limit-match.source.sed",
|
399
|
+
"match": "[0-9]+"
|
400
|
+
},
|
401
|
+
{
|
402
|
+
"match": "(w)\\s*([^;#}]*)",
|
403
|
+
"captures": {
|
404
|
+
"1": {
|
405
|
+
"name": "keyword.operator.modifier.write.file.source.sed"
|
406
|
+
},
|
407
|
+
"2": {
|
408
|
+
"name": "string.unquoted.filename.source.sed"
|
409
|
+
}
|
410
|
+
}
|
411
|
+
},
|
412
|
+
{
|
413
|
+
"name": "keyword.operator.modifier.exec-shell.gnu.source.sed",
|
414
|
+
"match": "e"
|
415
|
+
},
|
416
|
+
{
|
417
|
+
"name": "keyword.operator.modifier.ignore-case.gnu.source.sed",
|
418
|
+
"match": "I|i"
|
419
|
+
},
|
420
|
+
{
|
421
|
+
"name": "keyword.operator.modifier.multi-line.gnu.source.sed",
|
422
|
+
"match": "M|m"
|
423
|
+
},
|
424
|
+
{
|
425
|
+
"name": "invalid.illegal.unknown.flag.source.sed",
|
426
|
+
"match": "[^;\\s#}gp0-9eIiMm]+"
|
427
|
+
}
|
428
|
+
]
|
429
|
+
},
|
430
|
+
"insertion": {
|
431
|
+
"patterns": [
|
432
|
+
{
|
433
|
+
"name": "meta.insertion.source.sed",
|
434
|
+
"contentName": "string.unquoted.herestring.source.sed",
|
435
|
+
"begin": "[aic](\\\\)$\\s*",
|
436
|
+
"end": "$",
|
437
|
+
"patterns": [
|
438
|
+
{
|
439
|
+
"include": "#escape"
|
440
|
+
}
|
441
|
+
],
|
442
|
+
"beginCaptures": {
|
443
|
+
"0": {
|
444
|
+
"name": "keyword.control.insertion.command.source.sed"
|
445
|
+
},
|
446
|
+
"1": {
|
447
|
+
"name": "constant.character.escape.newline.source.sed"
|
448
|
+
}
|
449
|
+
}
|
450
|
+
},
|
451
|
+
{
|
452
|
+
"name": "meta.insertion.gnu.source.sed",
|
453
|
+
"contentName": "string.unquoted.herestring.source.sed",
|
454
|
+
"begin": "[aic]",
|
455
|
+
"end": "$",
|
456
|
+
"patterns": [
|
457
|
+
{
|
458
|
+
"include": "#escape"
|
459
|
+
}
|
460
|
+
],
|
461
|
+
"beginCaptures": {
|
462
|
+
"0": {
|
463
|
+
"name": "keyword.control.insertion.command.source.sed"
|
464
|
+
}
|
465
|
+
}
|
466
|
+
}
|
467
|
+
]
|
468
|
+
},
|
469
|
+
"main": {
|
470
|
+
"patterns": [
|
471
|
+
{
|
472
|
+
"include": "#comment"
|
473
|
+
},
|
474
|
+
{
|
475
|
+
"include": "#substitution"
|
476
|
+
},
|
477
|
+
{
|
478
|
+
"include": "#transliteration"
|
479
|
+
},
|
480
|
+
{
|
481
|
+
"include": "#insertion"
|
482
|
+
},
|
483
|
+
{
|
484
|
+
"include": "#addresses"
|
485
|
+
},
|
486
|
+
{
|
487
|
+
"include": "#semicolon"
|
488
|
+
},
|
489
|
+
{
|
490
|
+
"include": "#braces"
|
491
|
+
},
|
492
|
+
{
|
493
|
+
"include": "#commands"
|
494
|
+
}
|
495
|
+
]
|
496
|
+
},
|
497
|
+
"reference": {
|
498
|
+
"name": "variable.language.reference.source.sed",
|
499
|
+
"match": "\\\\[0-9]"
|
500
|
+
},
|
501
|
+
"regexp": {
|
502
|
+
"patterns": [
|
503
|
+
{
|
504
|
+
"name": "constant.language.wildcard.dot.match.any.source.sed",
|
505
|
+
"match": "\\."
|
506
|
+
},
|
507
|
+
{
|
508
|
+
"name": "constant.language.anchor.line-start.source.sed",
|
509
|
+
"match": "\\^"
|
510
|
+
},
|
511
|
+
{
|
512
|
+
"name": "constant.language.anchor.line-end.source.sed",
|
513
|
+
"match": "\\$"
|
514
|
+
},
|
515
|
+
{
|
516
|
+
"name": "constant.language.quantifier.min-0.source.sed",
|
517
|
+
"match": "\\*"
|
518
|
+
},
|
519
|
+
{
|
520
|
+
"name": "constant.language.quantifier.min-1.source.sed",
|
521
|
+
"match": "\\\\?\\+"
|
522
|
+
},
|
523
|
+
{
|
524
|
+
"name": "constant.language.quantifier.max-1.source.sed",
|
525
|
+
"match": "\\\\?\\?"
|
526
|
+
},
|
527
|
+
{
|
528
|
+
"name": "constant.language.alternation.disjunction.source.sed",
|
529
|
+
"match": "\\\\?\\|"
|
530
|
+
},
|
531
|
+
{
|
532
|
+
"name": "constant.language.group.begin.source.sed",
|
533
|
+
"match": "\\\\?\\("
|
534
|
+
},
|
535
|
+
{
|
536
|
+
"name": "constant.language.group.end.source.sed",
|
537
|
+
"match": "\\\\?\\)"
|
538
|
+
},
|
539
|
+
{
|
540
|
+
"include": "#reference"
|
541
|
+
},
|
542
|
+
{
|
543
|
+
"include": "#regexp.miscEscapes"
|
544
|
+
},
|
545
|
+
{
|
546
|
+
"include": "#regexp.quantiferRanges"
|
547
|
+
},
|
548
|
+
{
|
549
|
+
"include": "#regexp.bracketExpression"
|
550
|
+
},
|
551
|
+
{
|
552
|
+
"include": "#regexp.gnuCharacterEscapes"
|
553
|
+
},
|
554
|
+
{
|
555
|
+
"include": "#regexp.gnuEscapes"
|
556
|
+
},
|
557
|
+
{
|
558
|
+
"include": "#escape"
|
559
|
+
}
|
560
|
+
]
|
561
|
+
},
|
562
|
+
"regexp.bracketExpression": {
|
563
|
+
"name": "string.regexp.character-class.source.sed",
|
564
|
+
"begin": "\\[",
|
565
|
+
"end": "\\]|(?=$)",
|
566
|
+
"patterns": [
|
567
|
+
{
|
568
|
+
"name": "keyword.operator.logical.not.source.sed",
|
569
|
+
"match": "\\G\\^"
|
570
|
+
},
|
571
|
+
{
|
572
|
+
"match": "\\G\\]"
|
573
|
+
},
|
574
|
+
{
|
575
|
+
"name": "punctuation.separator.range.dash.source.sed",
|
576
|
+
"match": "(?\u003c!\\G)-(?!$|\\])"
|
577
|
+
},
|
578
|
+
{
|
579
|
+
"name": "constant.language.named.character-class.source.sed",
|
580
|
+
"match": "(\\[:)(?:(alnum|alpha|blank|cntrl|digit|graph|lower|print|punct|space|upper|xdigit)|(.*?))(\\:])",
|
581
|
+
"captures": {
|
582
|
+
"1": {
|
583
|
+
"name": "punctuation.definition.character-class.begin.source.sed"
|
584
|
+
},
|
585
|
+
"2": {
|
586
|
+
"name": "support.constant.posix-class.source.sed"
|
587
|
+
},
|
588
|
+
"3": {
|
589
|
+
"name": "invalid.illegal.unknown.character-class.source.sed"
|
590
|
+
},
|
591
|
+
"4": {
|
592
|
+
"name": "punctuation.definition.character-class.end.source.sed"
|
593
|
+
}
|
594
|
+
}
|
595
|
+
},
|
596
|
+
{
|
597
|
+
"name": "constant.language.collating-symbol.source.sed",
|
598
|
+
"begin": "\\[\\.",
|
599
|
+
"end": "\\.\\]|(?=$)",
|
600
|
+
"patterns": [
|
601
|
+
{
|
602
|
+
"include": "#escape"
|
603
|
+
}
|
604
|
+
],
|
605
|
+
"beginCaptures": {
|
606
|
+
"0": {
|
607
|
+
"name": "punctuation.definition.collating-symbol.begin.source.sed"
|
608
|
+
}
|
609
|
+
},
|
610
|
+
"endCaptures": {
|
611
|
+
"0": {
|
612
|
+
"name": "punctuation.definition.collating-symbol.end.source.sed"
|
613
|
+
}
|
614
|
+
}
|
615
|
+
},
|
616
|
+
{
|
617
|
+
"name": "constant.language.equivalence-class.source.sed",
|
618
|
+
"begin": "\\[=",
|
619
|
+
"end": "=\\]",
|
620
|
+
"patterns": [
|
621
|
+
{
|
622
|
+
"include": "#escape"
|
623
|
+
}
|
624
|
+
],
|
625
|
+
"beginCaptures": {
|
626
|
+
"0": {
|
627
|
+
"name": "punctuation.definition.equivalence-class.begin.source.sed"
|
628
|
+
}
|
629
|
+
},
|
630
|
+
"endCaptures": {
|
631
|
+
"0": {
|
632
|
+
"name": "punctuation.definition.equivalence-class.end.source.sed"
|
633
|
+
}
|
634
|
+
}
|
635
|
+
},
|
636
|
+
{
|
637
|
+
"include": "#escape"
|
638
|
+
}
|
639
|
+
],
|
640
|
+
"beginCaptures": {
|
641
|
+
"0": {
|
642
|
+
"name": "punctuation.definition.character-class.begin.source.sed"
|
643
|
+
}
|
644
|
+
},
|
645
|
+
"endCaptures": {
|
646
|
+
"0": {
|
647
|
+
"name": "punctuation.definition.character-class.end.source.sed"
|
648
|
+
}
|
649
|
+
}
|
650
|
+
},
|
651
|
+
"regexp.gnuCharacterEscapes": {
|
652
|
+
"patterns": [
|
653
|
+
{
|
654
|
+
"name": "constant.character.escape.alert.gnu.source.sed",
|
655
|
+
"match": "\\\\a"
|
656
|
+
},
|
657
|
+
{
|
658
|
+
"name": "constant.character.escape.form-feed.gnu.source.sed",
|
659
|
+
"match": "\\\\f"
|
660
|
+
},
|
661
|
+
{
|
662
|
+
"name": "constant.character.escape.carriage-return.gnu.source.sed",
|
663
|
+
"match": "\\\\r"
|
664
|
+
},
|
665
|
+
{
|
666
|
+
"name": "constant.character.escape.tab.gnu.source.sed",
|
667
|
+
"match": "\\\\t"
|
668
|
+
},
|
669
|
+
{
|
670
|
+
"name": "constant.character.escape.vertical-tab.gnu.source.sed",
|
671
|
+
"match": "\\\\v"
|
672
|
+
},
|
673
|
+
{
|
674
|
+
"name": "constant.character.escape.control-x.gnu.source.sed",
|
675
|
+
"match": "\\\\c."
|
676
|
+
},
|
677
|
+
{
|
678
|
+
"name": "constant.character.escape.decimal.codepoint.gnu.source.sed",
|
679
|
+
"match": "\\\\d[0-9]{3}"
|
680
|
+
},
|
681
|
+
{
|
682
|
+
"name": "constant.character.escape.octal.codepoint.gnu.source.sed",
|
683
|
+
"match": "\\\\o[0-7]{3}"
|
684
|
+
},
|
685
|
+
{
|
686
|
+
"name": "constant.character.escape.hex.codepoint.gnu.source.sed",
|
687
|
+
"match": "\\\\x[0-9A-Fa-f]{2}"
|
688
|
+
}
|
689
|
+
]
|
690
|
+
},
|
691
|
+
"regexp.gnuEscapes": {
|
692
|
+
"patterns": [
|
693
|
+
{
|
694
|
+
"name": "keyword.operator.lowercase.conversion.gnu.source.sed",
|
695
|
+
"match": "\\\\[Ll]"
|
696
|
+
},
|
697
|
+
{
|
698
|
+
"name": "keyword.operator.uppercase.conversion.gnu.source.sed",
|
699
|
+
"match": "\\\\[Uu]"
|
700
|
+
},
|
701
|
+
{
|
702
|
+
"name": "keyword.operator.end.conversion.gnu.source.sed",
|
703
|
+
"match": "\\\\E"
|
704
|
+
},
|
705
|
+
{
|
706
|
+
"name": "constant.language.word-character.gnu.source.sed",
|
707
|
+
"match": "\\\\w"
|
708
|
+
},
|
709
|
+
{
|
710
|
+
"name": "constant.language.word-character.negated.gnu.source.sed",
|
711
|
+
"match": "\\\\W"
|
712
|
+
},
|
713
|
+
{
|
714
|
+
"name": "constant.language.word-boundary.gnu.source.sed",
|
715
|
+
"match": "\\\\b"
|
716
|
+
},
|
717
|
+
{
|
718
|
+
"name": "constant.language.word-boundary.negated.gnu.source.sed",
|
719
|
+
"match": "\\\\B"
|
720
|
+
},
|
721
|
+
{
|
722
|
+
"name": "constant.language.whitespace-character.gnu.source.sed",
|
723
|
+
"match": "\\\\s"
|
724
|
+
},
|
725
|
+
{
|
726
|
+
"name": "constant.language.whitespace-character.negated.gnu.source.sed",
|
727
|
+
"match": "\\\\S"
|
728
|
+
},
|
729
|
+
{
|
730
|
+
"name": "constant.language.anchor.beginning-of-word.gnu.source.sed",
|
731
|
+
"match": "\\\\\u003c"
|
732
|
+
},
|
733
|
+
{
|
734
|
+
"name": "constant.language.anchor.end-of-word.gnu.source.sed",
|
735
|
+
"match": "\\\\\u003e"
|
736
|
+
},
|
737
|
+
{
|
738
|
+
"name": "constant.language.anchor.start-of-pattern.gnu.source.sed",
|
739
|
+
"match": "\\\\`"
|
740
|
+
},
|
741
|
+
{
|
742
|
+
"name": "constant.language.anchor.end-of-pattern.gnu.source.sed",
|
743
|
+
"match": "\\\\'"
|
744
|
+
}
|
745
|
+
]
|
746
|
+
},
|
747
|
+
"regexp.miscEscapes": {
|
748
|
+
"patterns": [
|
749
|
+
{
|
750
|
+
"name": "constant.character.escape.dollar-sign.source.sed",
|
751
|
+
"match": "\\\\\\$"
|
752
|
+
},
|
753
|
+
{
|
754
|
+
"name": "constant.character.escape.asterisk.source.sed",
|
755
|
+
"match": "\\\\\\*"
|
756
|
+
},
|
757
|
+
{
|
758
|
+
"name": "constant.character.escape.dot.period.source.sed",
|
759
|
+
"match": "\\\\\\."
|
760
|
+
},
|
761
|
+
{
|
762
|
+
"name": "constant.character.escape.square.bracket.source.sed",
|
763
|
+
"match": "\\\\\\["
|
764
|
+
},
|
765
|
+
{
|
766
|
+
"name": "constant.character.escape.backslash.source.sed",
|
767
|
+
"match": "\\\\{2}"
|
768
|
+
},
|
769
|
+
{
|
770
|
+
"name": "constant.character.escape.caret.source.sed",
|
771
|
+
"match": "\\\\\\^"
|
772
|
+
}
|
773
|
+
]
|
774
|
+
},
|
775
|
+
"regexp.quantiferRanges": {
|
776
|
+
"patterns": [
|
777
|
+
{
|
778
|
+
"name": "meta.escaped.quantifier.specific.range.source.sed",
|
779
|
+
"match": "(\\\\{)([0-9]+)(?:(,)([0-9]+)?)?(\\\\})",
|
780
|
+
"captures": {
|
781
|
+
"1": {
|
782
|
+
"name": "punctuation.definition.quantifier.bracket.curly.begin.source.sed"
|
783
|
+
},
|
784
|
+
"2": {
|
785
|
+
"name": "constant.numeric.integer.source.sed"
|
786
|
+
},
|
787
|
+
"3": {
|
788
|
+
"name": "punctuation.separator.range.comma.source.sed"
|
789
|
+
},
|
790
|
+
"4": {
|
791
|
+
"name": "constant.numeric.integer.source.sed"
|
792
|
+
},
|
793
|
+
"5": {
|
794
|
+
"name": "punctuation.definition.quantifier.bracket.curly.end.source.sed"
|
795
|
+
}
|
796
|
+
}
|
797
|
+
},
|
798
|
+
{
|
799
|
+
"name": "meta.unescaped.quantifier.specific.range.source.sed",
|
800
|
+
"match": "({)([0-9]+)(?:(,)([0-9]+)?)?(})",
|
801
|
+
"captures": {
|
802
|
+
"1": {
|
803
|
+
"name": "punctuation.definition.quantifier.bracket.curly.begin.source.sed"
|
804
|
+
},
|
805
|
+
"2": {
|
806
|
+
"name": "constant.numeric.integer.source.sed"
|
807
|
+
},
|
808
|
+
"3": {
|
809
|
+
"name": "punctuation.separator.range.comma.source.sed"
|
810
|
+
},
|
811
|
+
"4": {
|
812
|
+
"name": "constant.numeric.integer.source.sed"
|
813
|
+
},
|
814
|
+
"5": {
|
815
|
+
"name": "punctuation.definition.quantifier.bracket.curly.end.source.sed"
|
816
|
+
}
|
817
|
+
}
|
818
|
+
}
|
819
|
+
]
|
820
|
+
},
|
821
|
+
"replacement.innards": {
|
822
|
+
"patterns": [
|
823
|
+
{
|
824
|
+
"name": "variable.language.input.source.sed",
|
825
|
+
"match": "\u0026"
|
826
|
+
},
|
827
|
+
{
|
828
|
+
"include": "#reference"
|
829
|
+
},
|
830
|
+
{
|
831
|
+
"include": "#escape"
|
832
|
+
}
|
833
|
+
]
|
834
|
+
},
|
835
|
+
"semicolon": {
|
836
|
+
"name": "punctuation.terminator.statement.semicolon.source.sed",
|
837
|
+
"match": ";"
|
838
|
+
},
|
839
|
+
"substitution": {
|
840
|
+
"patterns": [
|
841
|
+
{
|
842
|
+
"name": "meta.substitution.pound-delimiter.source.sed",
|
843
|
+
"begin": "(s)(#)",
|
844
|
+
"end": "(#)([^;#}]*+)|(?=$|[;#}])",
|
845
|
+
"patterns": [
|
846
|
+
{
|
847
|
+
"name": "meta.match-pattern.source.sed",
|
848
|
+
"contentName": "string.regexp.substitution.search.source.sed",
|
849
|
+
"begin": "\\G",
|
850
|
+
"end": "#|(?=$)",
|
851
|
+
"patterns": [
|
852
|
+
{
|
853
|
+
"include": "#regexp"
|
854
|
+
}
|
855
|
+
],
|
856
|
+
"endCaptures": {
|
857
|
+
"0": {
|
858
|
+
"name": "punctuation.delimiter.pattern.middle.source.sed"
|
859
|
+
}
|
860
|
+
}
|
861
|
+
},
|
862
|
+
{
|
863
|
+
"name": "meta.replacement.source.sed",
|
864
|
+
"contentName": "string.quoted.double.source.sed",
|
865
|
+
"begin": "(?\u003c=#)",
|
866
|
+
"end": "(?!\\G)(?=#)|(?=$)",
|
867
|
+
"patterns": [
|
868
|
+
{
|
869
|
+
"include": "#replacement.innards"
|
870
|
+
}
|
871
|
+
]
|
872
|
+
},
|
873
|
+
{
|
874
|
+
"include": "#escape"
|
875
|
+
}
|
876
|
+
],
|
877
|
+
"beginCaptures": {
|
878
|
+
"1": {
|
879
|
+
"name": "keyword.control.command.source.sed"
|
880
|
+
},
|
881
|
+
"2": {
|
882
|
+
"name": "punctuation.delimiter.pattern.begin.source.sed"
|
883
|
+
}
|
884
|
+
},
|
885
|
+
"endCaptures": {
|
886
|
+
"1": {
|
887
|
+
"name": "punctuation.delimiter.pattern.end.source.sed"
|
888
|
+
},
|
889
|
+
"2": {
|
890
|
+
"name": "meta.options.source.sed",
|
891
|
+
"patterns": [
|
892
|
+
{
|
893
|
+
"include": "#flags"
|
894
|
+
}
|
895
|
+
]
|
896
|
+
}
|
897
|
+
}
|
898
|
+
},
|
899
|
+
{
|
900
|
+
"name": "meta.substitution.semicolon-delimiter.source.sed",
|
901
|
+
"begin": "(s)(;)",
|
902
|
+
"end": "(;)([^;#}]*+)|(?=$|[;#}])",
|
903
|
+
"patterns": [
|
904
|
+
{
|
905
|
+
"name": "meta.match-pattern.source.sed",
|
906
|
+
"contentName": "string.regexp.substitution.search.source.sed",
|
907
|
+
"begin": "\\G",
|
908
|
+
"end": ";|(?=$)",
|
909
|
+
"patterns": [
|
910
|
+
{
|
911
|
+
"include": "#regexp"
|
912
|
+
}
|
913
|
+
],
|
914
|
+
"endCaptures": {
|
915
|
+
"0": {
|
916
|
+
"name": "punctuation.delimiter.pattern.middle.source.sed"
|
917
|
+
}
|
918
|
+
}
|
919
|
+
},
|
920
|
+
{
|
921
|
+
"name": "meta.replacement.source.sed",
|
922
|
+
"contentName": "string.quoted.double.source.sed",
|
923
|
+
"begin": "(?\u003c=;)",
|
924
|
+
"end": "(?!\\G)(?=;)|(?=$)",
|
925
|
+
"patterns": [
|
926
|
+
{
|
927
|
+
"include": "#replacement.innards"
|
928
|
+
}
|
929
|
+
]
|
930
|
+
},
|
931
|
+
{
|
932
|
+
"include": "#escape"
|
933
|
+
}
|
934
|
+
],
|
935
|
+
"beginCaptures": {
|
936
|
+
"1": {
|
937
|
+
"name": "keyword.control.command.source.sed"
|
938
|
+
},
|
939
|
+
"2": {
|
940
|
+
"name": "punctuation.delimiter.pattern.begin.source.sed"
|
941
|
+
}
|
942
|
+
},
|
943
|
+
"endCaptures": {
|
944
|
+
"1": {
|
945
|
+
"name": "punctuation.delimiter.pattern.end.source.sed"
|
946
|
+
},
|
947
|
+
"2": {
|
948
|
+
"name": "meta.options.source.sed",
|
949
|
+
"patterns": [
|
950
|
+
{
|
951
|
+
"include": "#flags"
|
952
|
+
}
|
953
|
+
]
|
954
|
+
}
|
955
|
+
}
|
956
|
+
},
|
957
|
+
{
|
958
|
+
"name": "meta.substitution.brace-delimiter.source.sed",
|
959
|
+
"begin": "(s)(})",
|
960
|
+
"end": "(})([^;#}]*+)|(?=$|[;#}])",
|
961
|
+
"patterns": [
|
962
|
+
{
|
963
|
+
"name": "meta.match-pattern.source.sed",
|
964
|
+
"contentName": "string.regexp.substitution.search.source.sed",
|
965
|
+
"begin": "\\G",
|
966
|
+
"end": "}|(?=$)",
|
967
|
+
"patterns": [
|
968
|
+
{
|
969
|
+
"include": "#regexp"
|
970
|
+
}
|
971
|
+
],
|
972
|
+
"endCaptures": {
|
973
|
+
"0": {
|
974
|
+
"name": "punctuation.delimiter.pattern.middle.source.sed"
|
975
|
+
}
|
976
|
+
}
|
977
|
+
},
|
978
|
+
{
|
979
|
+
"name": "meta.replacement.source.sed",
|
980
|
+
"contentName": "string.quoted.double.source.sed",
|
981
|
+
"begin": "(?\u003c=})",
|
982
|
+
"end": "(?!\\G)(?=})|(?=$)",
|
983
|
+
"patterns": [
|
984
|
+
{
|
985
|
+
"include": "#replacement.innards"
|
986
|
+
}
|
987
|
+
]
|
988
|
+
},
|
989
|
+
{
|
990
|
+
"include": "#escape"
|
991
|
+
}
|
992
|
+
],
|
993
|
+
"beginCaptures": {
|
994
|
+
"1": {
|
995
|
+
"name": "keyword.control.command.source.sed"
|
996
|
+
},
|
997
|
+
"2": {
|
998
|
+
"name": "punctuation.delimiter.pattern.begin.source.sed"
|
999
|
+
}
|
1000
|
+
},
|
1001
|
+
"endCaptures": {
|
1002
|
+
"1": {
|
1003
|
+
"name": "punctuation.delimiter.pattern.end.source.sed"
|
1004
|
+
},
|
1005
|
+
"2": {
|
1006
|
+
"name": "meta.options.source.sed",
|
1007
|
+
"patterns": [
|
1008
|
+
{
|
1009
|
+
"include": "#flags"
|
1010
|
+
}
|
1011
|
+
]
|
1012
|
+
}
|
1013
|
+
}
|
1014
|
+
},
|
1015
|
+
{
|
1016
|
+
"name": "meta.substitution.source.sed",
|
1017
|
+
"begin": "s",
|
1018
|
+
"end": "$|(?\u003c=^)|(?=[;#}])",
|
1019
|
+
"patterns": [
|
1020
|
+
{
|
1021
|
+
"name": "meta.match-pattern.source.sed",
|
1022
|
+
"contentName": "string.regexp.substitution.search.source.sed",
|
1023
|
+
"begin": "\\G(.)",
|
1024
|
+
"end": "-?(?=\\1|$)",
|
1025
|
+
"patterns": [
|
1026
|
+
{
|
1027
|
+
"include": "#regexp"
|
1028
|
+
}
|
1029
|
+
],
|
1030
|
+
"beginCaptures": {
|
1031
|
+
"1": {
|
1032
|
+
"name": "punctuation.delimiter.pattern.begin.source.sed"
|
1033
|
+
}
|
1034
|
+
},
|
1035
|
+
"endCaptures": {
|
1036
|
+
"0": {
|
1037
|
+
"name": "string.quoted.double.source.sed"
|
1038
|
+
}
|
1039
|
+
}
|
1040
|
+
},
|
1041
|
+
{
|
1042
|
+
"name": "meta.replacement.source.sed",
|
1043
|
+
"contentName": "string.quoted.double.source.sed",
|
1044
|
+
"begin": "([^;#}])",
|
1045
|
+
"end": "(\\1)([^;#}]*+)|(?=$)",
|
1046
|
+
"patterns": [
|
1047
|
+
{
|
1048
|
+
"include": "#replacement.innards"
|
1049
|
+
}
|
1050
|
+
],
|
1051
|
+
"beginCaptures": {
|
1052
|
+
"1": {
|
1053
|
+
"name": "punctuation.delimiter.pattern.middle.source.sed"
|
1054
|
+
}
|
1055
|
+
},
|
1056
|
+
"endCaptures": {
|
1057
|
+
"1": {
|
1058
|
+
"name": "punctuation.delimiter.pattern.end.source.sed"
|
1059
|
+
},
|
1060
|
+
"2": {
|
1061
|
+
"name": "meta.options.source.sed",
|
1062
|
+
"patterns": [
|
1063
|
+
{
|
1064
|
+
"include": "#flags"
|
1065
|
+
}
|
1066
|
+
]
|
1067
|
+
}
|
1068
|
+
}
|
1069
|
+
}
|
1070
|
+
],
|
1071
|
+
"beginCaptures": {
|
1072
|
+
"0": {
|
1073
|
+
"name": "keyword.control.command.source.sed"
|
1074
|
+
}
|
1075
|
+
}
|
1076
|
+
}
|
1077
|
+
]
|
1078
|
+
},
|
1079
|
+
"transliteration": {
|
1080
|
+
"patterns": [
|
1081
|
+
{
|
1082
|
+
"name": "invalid.illegal.syntax.transliteration.source.sed",
|
1083
|
+
"match": "y {2}[^ ]*(?: |$)|y\\t{2}[^\\t]*(?:\\t|$)"
|
1084
|
+
},
|
1085
|
+
{
|
1086
|
+
"name": "meta.transliteration.space-delimiter.source.sed",
|
1087
|
+
"begin": "(y)( )",
|
1088
|
+
"end": "( )([^#;}]*)|$",
|
1089
|
+
"patterns": [
|
1090
|
+
{
|
1091
|
+
"name": "meta.source-characters.source.sed",
|
1092
|
+
"contentName": "string.quoted.double.source.sed",
|
1093
|
+
"begin": "\\G",
|
1094
|
+
"end": "(-)?( )|(?=$)",
|
1095
|
+
"patterns": [
|
1096
|
+
{
|
1097
|
+
"include": "#transliteration.ranges"
|
1098
|
+
}
|
1099
|
+
],
|
1100
|
+
"endCaptures": {
|
1101
|
+
"1": {
|
1102
|
+
"name": "string.quoted.double.source.sed"
|
1103
|
+
},
|
1104
|
+
"2": {
|
1105
|
+
"name": "punctuation.delimiter.whitespace.middle.source.sed"
|
1106
|
+
}
|
1107
|
+
}
|
1108
|
+
},
|
1109
|
+
{
|
1110
|
+
"name": "meta.replacement-characters.source.sed",
|
1111
|
+
"contentName": "string.quoted.double.source.sed",
|
1112
|
+
"begin": "(?\u003c= )",
|
1113
|
+
"end": "(?!\\G)-?(?= )|(?=$)",
|
1114
|
+
"patterns": [
|
1115
|
+
{
|
1116
|
+
"include": "#transliteration.ranges"
|
1117
|
+
}
|
1118
|
+
],
|
1119
|
+
"endCaptures": {
|
1120
|
+
"0": {
|
1121
|
+
"name": "string.quoted.double.source.sed"
|
1122
|
+
}
|
1123
|
+
}
|
1124
|
+
},
|
1125
|
+
{
|
1126
|
+
"include": "#escape"
|
1127
|
+
}
|
1128
|
+
],
|
1129
|
+
"beginCaptures": {
|
1130
|
+
"1": {
|
1131
|
+
"name": "keyword.control.command.source.sed"
|
1132
|
+
},
|
1133
|
+
"2": {
|
1134
|
+
"name": "punctuation.delimiter.whitespace.begin.source.sed"
|
1135
|
+
}
|
1136
|
+
},
|
1137
|
+
"endCaptures": {
|
1138
|
+
"1": {
|
1139
|
+
"name": "punctuation.delimiter.whitespace.end.source.sed"
|
1140
|
+
},
|
1141
|
+
"2": {
|
1142
|
+
"name": "invalid.illegal.extra-characters.source.sed"
|
1143
|
+
}
|
1144
|
+
}
|
1145
|
+
},
|
1146
|
+
{
|
1147
|
+
"name": "meta.transliteration.tab-delimiter.source.sed",
|
1148
|
+
"begin": "(y)(\\t)",
|
1149
|
+
"end": "(\\t)([^#;}]*)|$",
|
1150
|
+
"patterns": [
|
1151
|
+
{
|
1152
|
+
"name": "meta.source-characters.source.sed",
|
1153
|
+
"contentName": "string.quoted.double.source.sed",
|
1154
|
+
"begin": "\\G",
|
1155
|
+
"end": "(-)?(\\t)|(?=$)",
|
1156
|
+
"patterns": [
|
1157
|
+
{
|
1158
|
+
"include": "#transliteration.ranges"
|
1159
|
+
}
|
1160
|
+
],
|
1161
|
+
"endCaptures": {
|
1162
|
+
"1": {
|
1163
|
+
"name": "string.quoted.double.source.sed"
|
1164
|
+
},
|
1165
|
+
"2": {
|
1166
|
+
"name": "punctuation.delimiter.whitespace.middle.source.sed"
|
1167
|
+
}
|
1168
|
+
}
|
1169
|
+
},
|
1170
|
+
{
|
1171
|
+
"name": "meta.replacement-characters.source.sed",
|
1172
|
+
"contentName": "string.quoted.double.source.sed",
|
1173
|
+
"begin": "(?\u003c=\\t)",
|
1174
|
+
"end": "(?!\\G)-?(?=\\t)|(?=$)",
|
1175
|
+
"patterns": [
|
1176
|
+
{
|
1177
|
+
"include": "#transliteration.ranges"
|
1178
|
+
}
|
1179
|
+
],
|
1180
|
+
"endCaptures": {
|
1181
|
+
"0": {
|
1182
|
+
"name": "string.quoted.double.source.sed"
|
1183
|
+
}
|
1184
|
+
}
|
1185
|
+
},
|
1186
|
+
{
|
1187
|
+
"include": "#escape"
|
1188
|
+
}
|
1189
|
+
],
|
1190
|
+
"beginCaptures": {
|
1191
|
+
"1": {
|
1192
|
+
"name": "keyword.control.command.source.sed"
|
1193
|
+
},
|
1194
|
+
"2": {
|
1195
|
+
"name": "punctuation.delimiter.whitespace.begin.source.sed"
|
1196
|
+
}
|
1197
|
+
},
|
1198
|
+
"endCaptures": {
|
1199
|
+
"1": {
|
1200
|
+
"name": "punctuation.delimiter.whitespace.end.source.sed"
|
1201
|
+
},
|
1202
|
+
"2": {
|
1203
|
+
"name": "invalid.illegal.extra-characters.source.sed"
|
1204
|
+
}
|
1205
|
+
}
|
1206
|
+
},
|
1207
|
+
{
|
1208
|
+
"name": "meta.transliteration.semicolon-delimiter.source.sed",
|
1209
|
+
"begin": "(y)(;)",
|
1210
|
+
"end": "(;)([^#;}]*)|$",
|
1211
|
+
"patterns": [
|
1212
|
+
{
|
1213
|
+
"name": "meta.source-characters.source.sed",
|
1214
|
+
"contentName": "string.quoted.double.source.sed",
|
1215
|
+
"begin": "\\G",
|
1216
|
+
"end": "(-)?(;)|(?=$)",
|
1217
|
+
"patterns": [
|
1218
|
+
{
|
1219
|
+
"include": "#transliteration.ranges"
|
1220
|
+
}
|
1221
|
+
],
|
1222
|
+
"endCaptures": {
|
1223
|
+
"1": {
|
1224
|
+
"name": "string.quoted.double.source.sed"
|
1225
|
+
},
|
1226
|
+
"2": {
|
1227
|
+
"name": "punctuation.delimiter.pattern.middle.source.sed"
|
1228
|
+
}
|
1229
|
+
}
|
1230
|
+
},
|
1231
|
+
{
|
1232
|
+
"name": "meta.replacement-characters.source.sed",
|
1233
|
+
"contentName": "string.quoted.double.source.sed",
|
1234
|
+
"begin": "(?\u003c=;)",
|
1235
|
+
"end": "(?!\\G)-?(?=;)|(?=$)",
|
1236
|
+
"patterns": [
|
1237
|
+
{
|
1238
|
+
"include": "#transliteration.ranges"
|
1239
|
+
}
|
1240
|
+
],
|
1241
|
+
"endCaptures": {
|
1242
|
+
"0": {
|
1243
|
+
"name": "string.quoted.double.source.sed"
|
1244
|
+
}
|
1245
|
+
}
|
1246
|
+
},
|
1247
|
+
{
|
1248
|
+
"include": "#escape"
|
1249
|
+
}
|
1250
|
+
],
|
1251
|
+
"beginCaptures": {
|
1252
|
+
"1": {
|
1253
|
+
"name": "keyword.control.command.source.sed"
|
1254
|
+
},
|
1255
|
+
"2": {
|
1256
|
+
"name": "punctuation.delimiter.pattern.begin.source.sed"
|
1257
|
+
}
|
1258
|
+
},
|
1259
|
+
"endCaptures": {
|
1260
|
+
"1": {
|
1261
|
+
"name": "punctuation.delimiter.pattern.end.source.sed"
|
1262
|
+
},
|
1263
|
+
"2": {
|
1264
|
+
"name": "invalid.illegal.extra-characters.source.sed"
|
1265
|
+
}
|
1266
|
+
}
|
1267
|
+
},
|
1268
|
+
{
|
1269
|
+
"name": "meta.transliteration.brace-delimiter.source.sed",
|
1270
|
+
"begin": "(y)(})",
|
1271
|
+
"end": "(})([^#;}]*)|$",
|
1272
|
+
"patterns": [
|
1273
|
+
{
|
1274
|
+
"name": "meta.source-characters.source.sed",
|
1275
|
+
"contentName": "string.quoted.double.source.sed",
|
1276
|
+
"begin": "\\G",
|
1277
|
+
"end": "(-)?(})|(?=$)",
|
1278
|
+
"patterns": [
|
1279
|
+
{
|
1280
|
+
"include": "#transliteration.ranges"
|
1281
|
+
}
|
1282
|
+
],
|
1283
|
+
"endCaptures": {
|
1284
|
+
"1": {
|
1285
|
+
"name": "string.quoted.double.source.sed"
|
1286
|
+
},
|
1287
|
+
"2": {
|
1288
|
+
"name": "punctuation.delimiter.pattern.middle.source.sed"
|
1289
|
+
}
|
1290
|
+
}
|
1291
|
+
},
|
1292
|
+
{
|
1293
|
+
"name": "meta.replacement-characters.source.sed",
|
1294
|
+
"contentName": "string.quoted.double.source.sed",
|
1295
|
+
"begin": "(?\u003c=})",
|
1296
|
+
"end": "(?!\\G)-?(?=})|(?=$)",
|
1297
|
+
"patterns": [
|
1298
|
+
{
|
1299
|
+
"include": "#transliteration.ranges"
|
1300
|
+
}
|
1301
|
+
],
|
1302
|
+
"endCaptures": {
|
1303
|
+
"0": {
|
1304
|
+
"name": "string.quoted.double.source.sed"
|
1305
|
+
}
|
1306
|
+
}
|
1307
|
+
},
|
1308
|
+
{
|
1309
|
+
"include": "#escape"
|
1310
|
+
}
|
1311
|
+
],
|
1312
|
+
"beginCaptures": {
|
1313
|
+
"1": {
|
1314
|
+
"name": "keyword.control.command.source.sed"
|
1315
|
+
},
|
1316
|
+
"2": {
|
1317
|
+
"name": "punctuation.delimiter.pattern.begin.source.sed"
|
1318
|
+
}
|
1319
|
+
},
|
1320
|
+
"endCaptures": {
|
1321
|
+
"1": {
|
1322
|
+
"name": "punctuation.delimiter.pattern.end.source.sed"
|
1323
|
+
},
|
1324
|
+
"2": {
|
1325
|
+
"name": "invalid.illegal.extra-characters.source.sed"
|
1326
|
+
}
|
1327
|
+
}
|
1328
|
+
},
|
1329
|
+
{
|
1330
|
+
"name": "meta.transliteration.pound-delimiter.source.sed",
|
1331
|
+
"begin": "(y)(#)",
|
1332
|
+
"end": "(#)([^#;}]*)|$",
|
1333
|
+
"patterns": [
|
1334
|
+
{
|
1335
|
+
"name": "meta.source-characters.source.sed",
|
1336
|
+
"contentName": "string.quoted.double.source.sed",
|
1337
|
+
"begin": "\\G",
|
1338
|
+
"end": "(-)?(#)|(?=$)",
|
1339
|
+
"patterns": [
|
1340
|
+
{
|
1341
|
+
"include": "#transliteration.ranges"
|
1342
|
+
}
|
1343
|
+
],
|
1344
|
+
"endCaptures": {
|
1345
|
+
"1": {
|
1346
|
+
"name": "string.quoted.double.source.sed"
|
1347
|
+
},
|
1348
|
+
"2": {
|
1349
|
+
"name": "punctuation.delimiter.pattern.middle.source.sed"
|
1350
|
+
}
|
1351
|
+
}
|
1352
|
+
},
|
1353
|
+
{
|
1354
|
+
"name": "meta.replacement-characters.source.sed",
|
1355
|
+
"contentName": "string.quoted.double.source.sed",
|
1356
|
+
"begin": "(?\u003c=#)",
|
1357
|
+
"end": "(?!\\G)-?(?=#)|(?=$)",
|
1358
|
+
"patterns": [
|
1359
|
+
{
|
1360
|
+
"include": "#transliteration.ranges"
|
1361
|
+
}
|
1362
|
+
],
|
1363
|
+
"endCaptures": {
|
1364
|
+
"0": {
|
1365
|
+
"name": "string.quoted.double.source.sed"
|
1366
|
+
}
|
1367
|
+
}
|
1368
|
+
},
|
1369
|
+
{
|
1370
|
+
"include": "#escape"
|
1371
|
+
}
|
1372
|
+
],
|
1373
|
+
"beginCaptures": {
|
1374
|
+
"1": {
|
1375
|
+
"name": "keyword.control.command.source.sed"
|
1376
|
+
},
|
1377
|
+
"2": {
|
1378
|
+
"name": "punctuation.delimiter.pattern.begin.source.sed"
|
1379
|
+
}
|
1380
|
+
},
|
1381
|
+
"endCaptures": {
|
1382
|
+
"1": {
|
1383
|
+
"name": "punctuation.delimiter.pattern.end.source.sed"
|
1384
|
+
},
|
1385
|
+
"2": {
|
1386
|
+
"name": "invalid.illegal.extra-characters.source.sed"
|
1387
|
+
}
|
1388
|
+
}
|
1389
|
+
},
|
1390
|
+
{
|
1391
|
+
"name": "meta.transliteration.dash-delimiter.source.sed",
|
1392
|
+
"begin": "(y)(-)",
|
1393
|
+
"end": "(-)([^#;}]*)|$",
|
1394
|
+
"patterns": [
|
1395
|
+
{
|
1396
|
+
"name": "meta.source-characters.source.sed",
|
1397
|
+
"contentName": "string.quoted.double.source.sed",
|
1398
|
+
"begin": "\\G",
|
1399
|
+
"end": "-|(?=$)",
|
1400
|
+
"patterns": [
|
1401
|
+
{
|
1402
|
+
"include": "#escape"
|
1403
|
+
}
|
1404
|
+
],
|
1405
|
+
"endCaptures": {
|
1406
|
+
"0": {
|
1407
|
+
"name": "punctuation.delimiter.pattern.middle.source.sed"
|
1408
|
+
}
|
1409
|
+
}
|
1410
|
+
},
|
1411
|
+
{
|
1412
|
+
"name": "meta.replacement-characters.source.sed",
|
1413
|
+
"contentName": "string.quoted.double.source.sed",
|
1414
|
+
"begin": "(?\u003c=-)",
|
1415
|
+
"end": "(?=$|-)",
|
1416
|
+
"patterns": [
|
1417
|
+
{
|
1418
|
+
"include": "#escape"
|
1419
|
+
}
|
1420
|
+
]
|
1421
|
+
},
|
1422
|
+
{
|
1423
|
+
"include": "#escape"
|
1424
|
+
}
|
1425
|
+
],
|
1426
|
+
"beginCaptures": {
|
1427
|
+
"1": {
|
1428
|
+
"name": "keyword.control.command.source.sed"
|
1429
|
+
},
|
1430
|
+
"2": {
|
1431
|
+
"name": "punctuation.delimiter.pattern.begin.source.sed"
|
1432
|
+
}
|
1433
|
+
},
|
1434
|
+
"endCaptures": {
|
1435
|
+
"1": {
|
1436
|
+
"name": "punctuation.delimiter.pattern.end.source.sed"
|
1437
|
+
},
|
1438
|
+
"2": {
|
1439
|
+
"name": "invalid.illegal.extra-characters.source.sed"
|
1440
|
+
}
|
1441
|
+
}
|
1442
|
+
},
|
1443
|
+
{
|
1444
|
+
"name": "meta.transliteration.source.sed",
|
1445
|
+
"begin": "y",
|
1446
|
+
"end": "$|(?=[\\s#;}])|(?\u003c=^)",
|
1447
|
+
"patterns": [
|
1448
|
+
{
|
1449
|
+
"name": "meta.source-characters.source.sed",
|
1450
|
+
"contentName": "string.quoted.double.source.sed",
|
1451
|
+
"begin": "\\G(.)",
|
1452
|
+
"end": "-?(?=\\1|$)",
|
1453
|
+
"patterns": [
|
1454
|
+
{
|
1455
|
+
"include": "#transliteration.ranges"
|
1456
|
+
}
|
1457
|
+
],
|
1458
|
+
"beginCaptures": {
|
1459
|
+
"1": {
|
1460
|
+
"name": "punctuation.delimiter.pattern.begin.source.sed"
|
1461
|
+
}
|
1462
|
+
},
|
1463
|
+
"endCaptures": {
|
1464
|
+
"0": {
|
1465
|
+
"name": "string.quoted.double.source.sed"
|
1466
|
+
}
|
1467
|
+
}
|
1468
|
+
},
|
1469
|
+
{
|
1470
|
+
"name": "meta.replacement-characters.source.sed",
|
1471
|
+
"contentName": "string.quoted.double.source.sed",
|
1472
|
+
"begin": "(.)",
|
1473
|
+
"end": "(-)?(\\1)([^#;}]*+)|(?=$)",
|
1474
|
+
"patterns": [
|
1475
|
+
{
|
1476
|
+
"include": "#transliteration.ranges"
|
1477
|
+
}
|
1478
|
+
],
|
1479
|
+
"beginCaptures": {
|
1480
|
+
"1": {
|
1481
|
+
"name": "punctuation.delimiter.pattern.middle.source.sed"
|
1482
|
+
}
|
1483
|
+
},
|
1484
|
+
"endCaptures": {
|
1485
|
+
"1": {
|
1486
|
+
"name": "string.quoted.double.source.sed"
|
1487
|
+
},
|
1488
|
+
"2": {
|
1489
|
+
"name": "punctuation.delimiter.pattern.end.source.sed"
|
1490
|
+
},
|
1491
|
+
"3": {
|
1492
|
+
"name": "invalid.illegal.extra-characters.source.sed"
|
1493
|
+
}
|
1494
|
+
}
|
1495
|
+
}
|
1496
|
+
],
|
1497
|
+
"beginCaptures": {
|
1498
|
+
"0": {
|
1499
|
+
"name": "keyword.control.command.source.sed"
|
1500
|
+
}
|
1501
|
+
}
|
1502
|
+
}
|
1503
|
+
]
|
1504
|
+
},
|
1505
|
+
"transliteration.ranges": {
|
1506
|
+
"patterns": [
|
1507
|
+
{
|
1508
|
+
"match": "\\G-"
|
1509
|
+
},
|
1510
|
+
{
|
1511
|
+
"name": "keyword.operator.range.dash.source.sed",
|
1512
|
+
"match": "-"
|
1513
|
+
},
|
1514
|
+
{
|
1515
|
+
"include": "#escape"
|
1516
|
+
}
|
1517
|
+
]
|
1518
|
+
}
|
1519
|
+
}
|
1520
|
+
}
|