tm-grammars 1.22.18 → 1.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +287 -1
- package/README.md +241 -239
- package/grammars/abap.json +36 -36
- package/grammars/actionscript-3.json +29 -29
- package/grammars/ada.json +78 -78
- package/grammars/angular-expression.json +62 -62
- package/grammars/angular-html.json +0 -1
- package/grammars/angular-inline-style.json +3 -3
- package/grammars/angular-inline-template.json +2 -2
- package/grammars/angular-template-blocks.json +3 -3
- package/grammars/angular-template.json +1 -1
- package/grammars/angular-ts.json +251 -251
- package/grammars/apache.json +31 -31
- package/grammars/apex.json +108 -108
- package/grammars/apl.json +18 -18
- package/grammars/applescript.json +11 -11
- package/grammars/ara.json +13 -13
- package/grammars/asciidoc.json +234 -234
- package/grammars/asm.json +90 -90
- package/grammars/astro.json +25 -25
- package/grammars/awk.json +8 -8
- package/grammars/ballerina.json +150 -150
- package/grammars/bat.json +28 -28
- package/grammars/beancount.json +33 -33
- package/grammars/berry.json +11 -11
- package/grammars/bibtex.json +12 -12
- package/grammars/bicep.json +12 -12
- package/grammars/blade.json +183 -183
- package/grammars/bsl.json +58 -58
- package/grammars/c.json +162 -162
- package/grammars/cadence.json +20 -20
- package/grammars/cairo.json +10 -10
- package/grammars/clarity.json +20 -20
- package/grammars/clojure.json +25 -25
- package/grammars/cmake.json +3 -3
- package/grammars/cobol.json +91 -91
- package/grammars/codeql.json +154 -154
- package/grammars/coffee.json +45 -45
- package/grammars/common-lisp.json +50 -50
- package/grammars/coq.json +10 -10
- package/grammars/cpp-macro.json +410 -410
- package/grammars/cpp.json +641 -641
- package/grammars/crystal.json +68 -68
- package/grammars/csharp.json +196 -196
- package/grammars/css.json +83 -83
- package/grammars/csv.json +1 -1
- package/grammars/cue.json +55 -55
- package/grammars/cypher.json +11 -11
- package/grammars/d.json +127 -32
- package/grammars/dart.json +18 -18
- package/grammars/dax.json +9 -9
- package/grammars/desktop.json +9 -9
- package/grammars/diff.json +3 -3
- package/grammars/dotenv.json +3 -3
- package/grammars/dream-maker.json +20 -20
- package/grammars/edge.json +8 -8
- package/grammars/elixir.json +44 -44
- package/grammars/elm.json +23 -23
- package/grammars/emacs-lisp.json +76 -76
- package/grammars/erb.json +2 -2
- package/grammars/erlang.json +29 -29
- package/grammars/es-tag-css.json +3 -3
- package/grammars/es-tag-glsl.json +3 -3
- package/grammars/es-tag-html.json +3 -3
- package/grammars/es-tag-sql.json +2 -2
- package/grammars/es-tag-xml.json +2 -2
- package/grammars/fennel.json +8 -8
- package/grammars/fish.json +10 -10
- package/grammars/fluent.json +10 -10
- package/grammars/fortran-fixed-form.json +1 -1
- package/grammars/fortran-free-form.json +106 -106
- package/grammars/fsharp.json +70 -70
- package/grammars/gdresource.json +15 -15
- package/grammars/gdscript.json +31 -27
- package/grammars/gdshader.json +18 -18
- package/grammars/genie.json +6 -6
- package/grammars/gherkin.json +1 -1
- package/grammars/git-commit.json +1 -1
- package/grammars/git-rebase.json +1 -1
- package/grammars/gleam.json +11 -11
- package/grammars/glimmer-js.json +35 -35
- package/grammars/glimmer-ts.json +35 -35
- package/grammars/glsl.json +4 -4
- package/grammars/gnuplot.json +41 -41
- package/grammars/go.json +155 -155
- package/grammars/graphql.json +20 -20
- package/grammars/groovy.json +44 -44
- package/grammars/hack.json +74 -74
- package/grammars/haml.json +24 -24
- package/grammars/handlebars.json +25 -25
- package/grammars/haskell.json +99 -99
- package/grammars/haxe.json +51 -51
- package/grammars/hcl.json +43 -43
- package/grammars/hjson.json +29 -29
- package/grammars/hlsl.json +15 -15
- package/grammars/html-derivative.json +0 -1
- package/grammars/html.json +28 -29
- package/grammars/http.json +17 -17
- package/grammars/hxml.json +3 -3
- package/grammars/hy.json +10 -10
- package/grammars/imba.json +168 -173
- package/grammars/ini.json +2 -2
- package/grammars/java.json +54 -54
- package/grammars/javascript.json +262 -262
- package/grammars/jinja-html.json +3 -3
- package/grammars/jinja.json +15 -15
- package/grammars/jison.json +18 -18
- package/grammars/json.json +6 -6
- package/grammars/json5.json +12 -12
- package/grammars/jsonc.json +6 -6
- package/grammars/jsonl.json +6 -6
- package/grammars/jsonnet.json +15 -15
- package/grammars/jssm.json +4 -4
- package/grammars/jsx.json +262 -262
- package/grammars/julia.json +45 -45
- package/grammars/kotlin.json +15 -15
- package/grammars/kusto.json +13 -13
- package/grammars/latex.json +260 -260
- package/grammars/lean.json +12 -12
- package/grammars/less.json +91 -91
- package/grammars/liquid.json +96 -62
- package/grammars/llvm.json +122 -0
- package/grammars/log.json +22 -22
- package/grammars/logo.json +2 -2
- package/grammars/lua.json +34 -34
- package/grammars/luau.json +20 -20
- package/grammars/make.json +22 -22
- package/grammars/markdown-vue.json +1 -1
- package/grammars/markdown.json +83 -83
- package/grammars/marko.json +19 -19
- package/grammars/matlab.json +29 -29
- package/grammars/mdc.json +17 -17
- package/grammars/mdx.json +278 -278
- package/grammars/mermaid.json +97 -97
- package/grammars/mipsasm.json +2 -2
- package/grammars/mojo.json +122 -122
- package/grammars/move.json +35 -35
- package/grammars/narrat.json +10 -10
- package/grammars/nextflow.json +11 -11
- package/grammars/nginx.json +45 -45
- package/grammars/nim.json +44 -44
- package/grammars/nix.json +71 -71
- package/grammars/nushell.json +36 -36
- package/grammars/objective-c.json +129 -129
- package/grammars/objective-cpp.json +245 -245
- package/grammars/ocaml.json +229 -229
- package/grammars/pascal.json +4 -4
- package/grammars/perl.json +64 -64
- package/grammars/php.json +199 -199
- package/grammars/plsql.json +10 -10
- package/grammars/po.json +4 -4
- package/grammars/polar.json +13 -13
- package/grammars/postcss.json +31 -31
- package/grammars/powerquery.json +10 -10
- package/grammars/powershell.json +54 -54
- package/grammars/prisma.json +13 -13
- package/grammars/prolog.json +3 -3
- package/grammars/proto.json +11 -11
- package/grammars/pug.json +30 -30
- package/grammars/puppet.json +35 -35
- package/grammars/purescript.json +843 -467
- package/grammars/python.json +126 -126
- package/grammars/qml.json +18 -18
- package/grammars/qss.json +7 -7
- package/grammars/r.json +17 -17
- package/grammars/racket.json +58 -58
- package/grammars/raku.json +15 -15
- package/grammars/razor.json +30 -30
- package/grammars/reg.json +3 -3
- package/grammars/regexp.json +15 -15
- package/grammars/rel.json +4 -4
- package/grammars/riscv.json +15 -15
- package/grammars/rst.json +26 -26
- package/grammars/ruby.json +103 -106
- package/grammars/rust.json +13 -13
- package/grammars/sas.json +9 -9
- package/grammars/sass.json +35 -35
- package/grammars/scala.json +75 -75
- package/grammars/scheme.json +16 -16
- package/grammars/scss.json +68 -68
- package/grammars/sdbl.json +18 -18
- package/grammars/shaderlab.json +8 -8
- package/grammars/shellscript.json +111 -111
- package/grammars/shellsession.json +1 -1
- package/grammars/smalltalk.json +5 -5
- package/grammars/solidity.json +20 -20
- package/grammars/soy.json +30 -30
- package/grammars/sparql.json +1 -1
- package/grammars/splunk.json +6 -6
- package/grammars/sql.json +8 -8
- package/grammars/ssh-config.json +2 -2
- package/grammars/stata.json +90 -90
- package/grammars/stylus.json +48 -48
- package/grammars/svelte.json +35 -25
- package/grammars/swift.json +114 -114
- package/grammars/system-verilog.json +25 -25
- package/grammars/systemd.json +16 -16
- package/grammars/talonscript.json +12 -12
- package/grammars/tasl.json +10 -10
- package/grammars/tcl.json +11 -11
- package/grammars/templ.json +34 -34
- package/grammars/terraform.json +42 -42
- package/grammars/tex.json +14 -14
- package/grammars/toml.json +15 -15
- package/grammars/tsx.json +262 -262
- package/grammars/turtle.json +2 -2
- package/grammars/twig.json +37 -37
- package/grammars/typescript.json +251 -251
- package/grammars/typespec.json +54 -273
- package/grammars/typst.json +34 -34
- package/grammars/v.json +32 -32
- package/grammars/vala.json +6 -6
- package/grammars/vb.json +7 -7
- package/grammars/verilog.json +4 -4
- package/grammars/vhdl.json +10 -10
- package/grammars/viml.json +22 -22
- package/grammars/vue-html.json +10 -10
- package/grammars/vue-sfc-style-variable-injection.json +1 -1
- package/grammars/vue.json +65 -65
- package/grammars/vyper.json +126 -126
- package/grammars/wasm.json +26 -26
- package/grammars/wenyan.json +7 -7
- package/grammars/wgsl.json +9 -9
- package/grammars/wikitext.json +66 -66
- package/grammars/wit.json +1409 -0
- package/grammars/wolfram.json +446 -446
- package/grammars/xml.json +11 -11
- package/grammars/xsl.json +1 -1
- package/grammars/yaml.json +24 -24
- package/grammars/zenscript.json +8 -8
- package/grammars/zig.json +11 -11
- package/index.d.ts +7 -0
- package/index.js +1226 -506
- package/package.json +1 -1
package/grammars/vyper.json
CHANGED
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"name": "keyword.operator.assignment.python"
|
|
45
45
|
},
|
|
46
46
|
"backticks": {
|
|
47
|
-
"begin": "
|
|
48
|
-
"end": "(
|
|
47
|
+
"begin": "`",
|
|
48
|
+
"end": "(?:`|(?<!\\\\)(\\n))",
|
|
49
49
|
"name": "invalid.deprecated.backtick.python",
|
|
50
50
|
"patterns": [
|
|
51
51
|
{
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
"class-declaration": {
|
|
164
164
|
"patterns": [
|
|
165
165
|
{
|
|
166
|
-
"begin": "\\s*(class)\\s+(?=[[:alpha:]_]\\w*\\s*(
|
|
166
|
+
"begin": "\\s*(class)\\s+(?=[[:alpha:]_]\\w*\\s*([:(]))",
|
|
167
167
|
"beginCaptures": {
|
|
168
168
|
"1": {
|
|
169
169
|
"name": "storage.type.class.python"
|
|
@@ -203,7 +203,7 @@
|
|
|
203
203
|
"name": "meta.class.inheritance.python",
|
|
204
204
|
"patterns": [
|
|
205
205
|
{
|
|
206
|
-
"match": "(
|
|
206
|
+
"match": "(\\*(?:\\*|))",
|
|
207
207
|
"name": "keyword.operator.unpacking.arguments.python"
|
|
208
208
|
},
|
|
209
209
|
{
|
|
@@ -269,12 +269,12 @@
|
|
|
269
269
|
"name": "keyword.codetag.notation.python"
|
|
270
270
|
}
|
|
271
271
|
},
|
|
272
|
-
"match": "
|
|
272
|
+
"match": "\\b(NOTE|XXX|HACK|FIXME|BUG|TODO)\\b"
|
|
273
273
|
},
|
|
274
274
|
"comments": {
|
|
275
275
|
"patterns": [
|
|
276
276
|
{
|
|
277
|
-
"begin": "
|
|
277
|
+
"begin": "#\\s*(type:)\\s*+(?!$|#)",
|
|
278
278
|
"beginCaptures": {
|
|
279
279
|
"0": {
|
|
280
280
|
"name": "meta.typehint.comment.python"
|
|
@@ -284,11 +284,11 @@
|
|
|
284
284
|
}
|
|
285
285
|
},
|
|
286
286
|
"contentName": "meta.typehint.comment.python",
|
|
287
|
-
"end": "(?:$|(
|
|
287
|
+
"end": "(?:$|(?=#))",
|
|
288
288
|
"name": "comment.line.number-sign.python",
|
|
289
289
|
"patterns": [
|
|
290
290
|
{
|
|
291
|
-
"match": "\\Gignore(?=\\s*(
|
|
291
|
+
"match": "\\Gignore(?=\\s*(?:$|#))",
|
|
292
292
|
"name": "comment.typehint.ignore.notation.python"
|
|
293
293
|
},
|
|
294
294
|
{
|
|
@@ -296,7 +296,7 @@
|
|
|
296
296
|
"name": "comment.typehint.type.notation.python"
|
|
297
297
|
},
|
|
298
298
|
{
|
|
299
|
-
"match": "([\\[\\]
|
|
299
|
+
"match": "([\\[\\](),.=*]|(->))",
|
|
300
300
|
"name": "comment.typehint.punctuation.notation.python"
|
|
301
301
|
},
|
|
302
302
|
{
|
|
@@ -311,7 +311,7 @@
|
|
|
311
311
|
]
|
|
312
312
|
},
|
|
313
313
|
"comments-base": {
|
|
314
|
-
"begin": "(
|
|
314
|
+
"begin": "(#)",
|
|
315
315
|
"beginCaptures": {
|
|
316
316
|
"1": {
|
|
317
317
|
"name": "punctuation.definition.comment.python"
|
|
@@ -326,7 +326,7 @@
|
|
|
326
326
|
]
|
|
327
327
|
},
|
|
328
328
|
"comments-string-double-three": {
|
|
329
|
-
"begin": "(
|
|
329
|
+
"begin": "(#)",
|
|
330
330
|
"beginCaptures": {
|
|
331
331
|
"1": {
|
|
332
332
|
"name": "punctuation.definition.comment.python"
|
|
@@ -341,7 +341,7 @@
|
|
|
341
341
|
]
|
|
342
342
|
},
|
|
343
343
|
"comments-string-single-three": {
|
|
344
|
-
"begin": "(
|
|
344
|
+
"begin": "(#)",
|
|
345
345
|
"beginCaptures": {
|
|
346
346
|
"1": {
|
|
347
347
|
"name": "punctuation.definition.comment.python"
|
|
@@ -362,7 +362,7 @@
|
|
|
362
362
|
"name": "punctuation.definition.dict.begin.python"
|
|
363
363
|
}
|
|
364
364
|
},
|
|
365
|
-
"end": "
|
|
365
|
+
"end": "}",
|
|
366
366
|
"endCaptures": {
|
|
367
367
|
"0": {
|
|
368
368
|
"name": "punctuation.definition.dict.end.python"
|
|
@@ -388,7 +388,7 @@
|
|
|
388
388
|
"name": "punctuation.definition.decorator.python"
|
|
389
389
|
}
|
|
390
390
|
},
|
|
391
|
-
"end": "(\\))(
|
|
391
|
+
"end": "(\\))(.*?)(?=\\s*(?:#|$))|(?=[\\n#])",
|
|
392
392
|
"endCaptures": {
|
|
393
393
|
"1": {
|
|
394
394
|
"name": "punctuation.definition.arguments.end.python"
|
|
@@ -433,7 +433,7 @@
|
|
|
433
433
|
"name": "invalid.illegal.decorator.python"
|
|
434
434
|
}
|
|
435
435
|
},
|
|
436
|
-
"match": "\\s*([^([:alpha:]\\s_
|
|
436
|
+
"match": "\\s*([^([:alpha:]\\s_.#\\\\].*?)(?=#|$)",
|
|
437
437
|
"name": "invalid.illegal.decorator.python"
|
|
438
438
|
}
|
|
439
439
|
]
|
|
@@ -441,7 +441,7 @@
|
|
|
441
441
|
"docstring": {
|
|
442
442
|
"patterns": [
|
|
443
443
|
{
|
|
444
|
-
"begin": "(
|
|
444
|
+
"begin": "('''|\"\"\")",
|
|
445
445
|
"beginCaptures": {
|
|
446
446
|
"1": {
|
|
447
447
|
"name": "punctuation.definition.string.begin.python"
|
|
@@ -467,7 +467,7 @@
|
|
|
467
467
|
]
|
|
468
468
|
},
|
|
469
469
|
{
|
|
470
|
-
"begin": "([rR])(
|
|
470
|
+
"begin": "([rR])('''|\"\"\")",
|
|
471
471
|
"beginCaptures": {
|
|
472
472
|
"1": {
|
|
473
473
|
"name": "storage.type.string.python"
|
|
@@ -496,7 +496,7 @@
|
|
|
496
496
|
]
|
|
497
497
|
},
|
|
498
498
|
{
|
|
499
|
-
"begin": "(
|
|
499
|
+
"begin": "(['\"])",
|
|
500
500
|
"beginCaptures": {
|
|
501
501
|
"1": {
|
|
502
502
|
"name": "punctuation.definition.string.begin.python"
|
|
@@ -522,7 +522,7 @@
|
|
|
522
522
|
]
|
|
523
523
|
},
|
|
524
524
|
{
|
|
525
|
-
"begin": "([rR])(
|
|
525
|
+
"begin": "([rR])(['\"])",
|
|
526
526
|
"beginCaptures": {
|
|
527
527
|
"1": {
|
|
528
528
|
"name": "storage.type.string.python"
|
|
@@ -571,11 +571,11 @@
|
|
|
571
571
|
"name": "keyword.control.flow.python"
|
|
572
572
|
}
|
|
573
573
|
},
|
|
574
|
-
"match": "(
|
|
574
|
+
"match": "(?:^|\\G)\\s*((?:>>>|\\.\\.\\.)\\s)(?=\\s*\\S)"
|
|
575
575
|
},
|
|
576
576
|
"docstring-statement": {
|
|
577
|
-
"begin": "^(?=\\s*[rR]?(
|
|
578
|
-
"end": "((?<=\\1)|^)(?!\\s*[rR]?(
|
|
577
|
+
"begin": "^(?=\\s*[rR]?('''|\"\"\"|['\"]))",
|
|
578
|
+
"end": "((?<=\\1)|^)(?!\\s*[rR]?('''|\"\"\"|['\"]))",
|
|
579
579
|
"patterns": [
|
|
580
580
|
{
|
|
581
581
|
"include": "#docstring"
|
|
@@ -585,10 +585,10 @@
|
|
|
585
585
|
"double-one-regexp-character-set": {
|
|
586
586
|
"patterns": [
|
|
587
587
|
{
|
|
588
|
-
"match": "\\[
|
|
588
|
+
"match": "\\[\\^?](?!.*?])"
|
|
589
589
|
},
|
|
590
590
|
{
|
|
591
|
-
"begin": "(\\[)(\\^)?(
|
|
591
|
+
"begin": "(\\[)(\\^)?(])?",
|
|
592
592
|
"beginCaptures": {
|
|
593
593
|
"1": {
|
|
594
594
|
"name": "punctuation.character.set.begin.regexp constant.other.set.regexp"
|
|
@@ -600,7 +600,7 @@
|
|
|
600
600
|
"name": "constant.character.set.regexp"
|
|
601
601
|
}
|
|
602
602
|
},
|
|
603
|
-
"end": "(
|
|
603
|
+
"end": "(]|(?=\"))|((?=(?<!\\\\)\\n))",
|
|
604
604
|
"endCaptures": {
|
|
605
605
|
"1": {
|
|
606
606
|
"name": "punctuation.character.set.end.regexp constant.other.set.regexp"
|
|
@@ -615,7 +615,7 @@
|
|
|
615
615
|
"include": "#regexp-charecter-set-escapes"
|
|
616
616
|
},
|
|
617
617
|
{
|
|
618
|
-
"match": "
|
|
618
|
+
"match": "\\N",
|
|
619
619
|
"name": "constant.character.set.regexp"
|
|
620
620
|
}
|
|
621
621
|
]
|
|
@@ -646,7 +646,7 @@
|
|
|
646
646
|
]
|
|
647
647
|
},
|
|
648
648
|
"double-one-regexp-conditional": {
|
|
649
|
-
"begin": "(\\()\\?\\((\\w+(?:\\s
|
|
649
|
+
"begin": "(\\()\\?\\((\\w+(?:\\s+\\p{alnum}+)?|\\d+)\\)",
|
|
650
650
|
"beginCaptures": {
|
|
651
651
|
"0": {
|
|
652
652
|
"name": "keyword.operator.conditional.regexp"
|
|
@@ -814,7 +814,7 @@
|
|
|
814
814
|
]
|
|
815
815
|
},
|
|
816
816
|
"double-one-regexp-named-group": {
|
|
817
|
-
"begin": "(\\()(\\?P<\\w+(?:\\s
|
|
817
|
+
"begin": "(\\()(\\?P<\\w+(?:\\s+\\p{alnum}+)?>)",
|
|
818
818
|
"beginCaptures": {
|
|
819
819
|
"1": {
|
|
820
820
|
"name": "support.other.parenthesis.regexp punctuation.parenthesis.named.begin.regexp"
|
|
@@ -886,10 +886,10 @@
|
|
|
886
886
|
"double-three-regexp-character-set": {
|
|
887
887
|
"patterns": [
|
|
888
888
|
{
|
|
889
|
-
"match": "\\[
|
|
889
|
+
"match": "\\[\\^?](?!.*?])"
|
|
890
890
|
},
|
|
891
891
|
{
|
|
892
|
-
"begin": "(\\[)(\\^)?(
|
|
892
|
+
"begin": "(\\[)(\\^)?(])?",
|
|
893
893
|
"beginCaptures": {
|
|
894
894
|
"1": {
|
|
895
895
|
"name": "punctuation.character.set.begin.regexp constant.other.set.regexp"
|
|
@@ -901,7 +901,7 @@
|
|
|
901
901
|
"name": "constant.character.set.regexp"
|
|
902
902
|
}
|
|
903
903
|
},
|
|
904
|
-
"end": "(
|
|
904
|
+
"end": "(]|(?=\"\"\"))",
|
|
905
905
|
"endCaptures": {
|
|
906
906
|
"1": {
|
|
907
907
|
"name": "punctuation.character.set.end.regexp constant.other.set.regexp"
|
|
@@ -916,7 +916,7 @@
|
|
|
916
916
|
"include": "#regexp-charecter-set-escapes"
|
|
917
917
|
},
|
|
918
918
|
{
|
|
919
|
-
"match": "
|
|
919
|
+
"match": "\\N",
|
|
920
920
|
"name": "constant.character.set.regexp"
|
|
921
921
|
}
|
|
922
922
|
]
|
|
@@ -947,7 +947,7 @@
|
|
|
947
947
|
]
|
|
948
948
|
},
|
|
949
949
|
"double-three-regexp-conditional": {
|
|
950
|
-
"begin": "(\\()\\?\\((\\w+(?:\\s
|
|
950
|
+
"begin": "(\\()\\?\\((\\w+(?:\\s+\\p{alnum}+)?|\\d+)\\)",
|
|
951
951
|
"beginCaptures": {
|
|
952
952
|
"0": {
|
|
953
953
|
"name": "keyword.operator.conditional.regexp"
|
|
@@ -1133,7 +1133,7 @@
|
|
|
1133
1133
|
]
|
|
1134
1134
|
},
|
|
1135
1135
|
"double-three-regexp-named-group": {
|
|
1136
|
-
"begin": "(\\()(\\?P<\\w+(?:\\s
|
|
1136
|
+
"begin": "(\\()(\\?P<\\w+(?:\\s+\\p{alnum}+)?>)",
|
|
1137
1137
|
"beginCaptures": {
|
|
1138
1138
|
"1": {
|
|
1139
1139
|
"name": "support.other.parenthesis.regexp punctuation.parenthesis.named.begin.regexp"
|
|
@@ -1216,13 +1216,13 @@
|
|
|
1216
1216
|
"name": "constant.other.ellipsis.python"
|
|
1217
1217
|
},
|
|
1218
1218
|
"escape-sequence": {
|
|
1219
|
-
"match": "\\\\(x
|
|
1219
|
+
"match": "\\\\(x\\h{2}|[0-7]{1,3}|[\\\\\"'abfnrtv])",
|
|
1220
1220
|
"name": "constant.character.escape.python"
|
|
1221
1221
|
},
|
|
1222
1222
|
"escape-sequence-unicode": {
|
|
1223
1223
|
"patterns": [
|
|
1224
1224
|
{
|
|
1225
|
-
"match": "\\\\(u
|
|
1225
|
+
"match": "\\\\(u\\h{4}|U\\h{8}|N\\{[\\w\\s]+?})",
|
|
1226
1226
|
"name": "constant.character.escape.python"
|
|
1227
1227
|
}
|
|
1228
1228
|
]
|
|
@@ -1357,7 +1357,7 @@
|
|
|
1357
1357
|
"include": "#fstring-formatting-braces"
|
|
1358
1358
|
},
|
|
1359
1359
|
{
|
|
1360
|
-
"match": "\\{
|
|
1360
|
+
"match": "\\{.*?}"
|
|
1361
1361
|
},
|
|
1362
1362
|
{
|
|
1363
1363
|
"include": "#regexp-base-common"
|
|
@@ -1365,7 +1365,7 @@
|
|
|
1365
1365
|
]
|
|
1366
1366
|
},
|
|
1367
1367
|
"fregexp-quantifier": {
|
|
1368
|
-
"match": "\\{\\{(\\d+|\\d+,(\\d+)?|,\\d+)
|
|
1368
|
+
"match": "\\{\\{(\\d+|\\d+,(\\d+)?|,\\d+)}}",
|
|
1369
1369
|
"name": "keyword.operator.quantifier.regexp"
|
|
1370
1370
|
},
|
|
1371
1371
|
"fstring-fnorm-quoted-multi-line": {
|
|
@@ -1468,10 +1468,10 @@
|
|
|
1468
1468
|
"name": "constant.character.format.placeholder.other.python"
|
|
1469
1469
|
}
|
|
1470
1470
|
},
|
|
1471
|
-
"match": "({)(\\s*?)(})"
|
|
1471
|
+
"match": "(\\{)(\\s*?)(})"
|
|
1472
1472
|
},
|
|
1473
1473
|
{
|
|
1474
|
-
"match": "({{|}})",
|
|
1474
|
+
"match": "(\\{\\{|}})",
|
|
1475
1475
|
"name": "constant.character.escape.python"
|
|
1476
1476
|
}
|
|
1477
1477
|
]
|
|
@@ -1510,7 +1510,7 @@
|
|
|
1510
1510
|
"name": "constant.character.format.placeholder.other.python"
|
|
1511
1511
|
}
|
|
1512
1512
|
},
|
|
1513
|
-
"end": "(
|
|
1513
|
+
"end": "(})|(?=\\n)",
|
|
1514
1514
|
"endCaptures": {
|
|
1515
1515
|
"1": {
|
|
1516
1516
|
"name": "constant.character.format.placeholder.other.python"
|
|
@@ -1532,7 +1532,7 @@
|
|
|
1532
1532
|
"name": "constant.character.format.placeholder.other.python"
|
|
1533
1533
|
}
|
|
1534
1534
|
},
|
|
1535
|
-
"end": "(
|
|
1535
|
+
"end": "(})",
|
|
1536
1536
|
"endCaptures": {
|
|
1537
1537
|
"1": {
|
|
1538
1538
|
"name": "constant.character.format.placeholder.other.python"
|
|
@@ -1548,7 +1548,7 @@
|
|
|
1548
1548
|
]
|
|
1549
1549
|
},
|
|
1550
1550
|
"fstring-multi-core": {
|
|
1551
|
-
"match": "(.+?)(($\\n?)|(?=[
|
|
1551
|
+
"match": "(.+?)(($\\n?)|(?=[\\\\}{]|'''|\"\"\"))|\\n",
|
|
1552
1552
|
"name": "string.interpolated.python string.quoted.multi.python"
|
|
1553
1553
|
},
|
|
1554
1554
|
"fstring-normf-quoted-multi-line": {
|
|
@@ -1638,7 +1638,7 @@
|
|
|
1638
1638
|
]
|
|
1639
1639
|
},
|
|
1640
1640
|
"fstring-raw-multi-core": {
|
|
1641
|
-
"match": "(.+?)(($\\n?)|(?=[
|
|
1641
|
+
"match": "(.+?)(($\\n?)|(?=[\\\\}{]|'''|\"\"\"))|\\n",
|
|
1642
1642
|
"name": "string.interpolated.python string.quoted.raw.multi.python"
|
|
1643
1643
|
},
|
|
1644
1644
|
"fstring-raw-quoted-multi-line": {
|
|
@@ -1712,7 +1712,7 @@
|
|
|
1712
1712
|
]
|
|
1713
1713
|
},
|
|
1714
1714
|
"fstring-raw-single-core": {
|
|
1715
|
-
"match": "(.+?)(($\\n?)|(?=[
|
|
1715
|
+
"match": "(.+?)(($\\n?)|(?=[\\\\}{]|(['\"])|((?<!\\\\)\\n)))|\\n",
|
|
1716
1716
|
"name": "string.interpolated.python string.quoted.raw.single.python"
|
|
1717
1717
|
},
|
|
1718
1718
|
"fstring-single-brace": {
|
|
@@ -1722,7 +1722,7 @@
|
|
|
1722
1722
|
"name": "constant.character.format.placeholder.other.python"
|
|
1723
1723
|
}
|
|
1724
1724
|
},
|
|
1725
|
-
"end": "(
|
|
1725
|
+
"end": "(})|(?=\\n)",
|
|
1726
1726
|
"endCaptures": {
|
|
1727
1727
|
"1": {
|
|
1728
1728
|
"name": "constant.character.format.placeholder.other.python"
|
|
@@ -1738,7 +1738,7 @@
|
|
|
1738
1738
|
]
|
|
1739
1739
|
},
|
|
1740
1740
|
"fstring-single-core": {
|
|
1741
|
-
"match": "(.+?)(($\\n?)|(?=[
|
|
1741
|
+
"match": "(.+?)(($\\n?)|(?=[\\\\}{]|(['\"])|((?<!\\\\)\\n)))|\\n",
|
|
1742
1742
|
"name": "string.interpolated.python string.quoted.single.python"
|
|
1743
1743
|
},
|
|
1744
1744
|
"fstring-terminator-multi": {
|
|
@@ -1760,7 +1760,7 @@
|
|
|
1760
1760
|
"name": "storage.type.format.python"
|
|
1761
1761
|
}
|
|
1762
1762
|
},
|
|
1763
|
-
"match": "((
|
|
1763
|
+
"match": "(=?(?:![rsa])?)(:\\w?[<>=\\^]?[\\-+ ]?#?\\d*,?(\\.\\d+)?[bcdeEfFgGnosxX%]?)(?=})"
|
|
1764
1764
|
},
|
|
1765
1765
|
{
|
|
1766
1766
|
"include": "#fstring-terminator-multi-tail"
|
|
@@ -1768,7 +1768,7 @@
|
|
|
1768
1768
|
]
|
|
1769
1769
|
},
|
|
1770
1770
|
"fstring-terminator-multi-tail": {
|
|
1771
|
-
"begin": "((
|
|
1771
|
+
"begin": "(=?(?:![rsa])?)(:)(?=.*?\\{)",
|
|
1772
1772
|
"beginCaptures": {
|
|
1773
1773
|
"1": {
|
|
1774
1774
|
"name": "storage.type.format.python"
|
|
@@ -1802,15 +1802,15 @@
|
|
|
1802
1802
|
"name": "storage.type.format.python"
|
|
1803
1803
|
},
|
|
1804
1804
|
{
|
|
1805
|
-
"match": "(
|
|
1805
|
+
"match": "(#)",
|
|
1806
1806
|
"name": "storage.type.format.python"
|
|
1807
1807
|
},
|
|
1808
1808
|
{
|
|
1809
|
-
"match": "([
|
|
1809
|
+
"match": "([\\-+ ])",
|
|
1810
1810
|
"name": "storage.type.format.python"
|
|
1811
1811
|
},
|
|
1812
1812
|
{
|
|
1813
|
-
"match": "([
|
|
1813
|
+
"match": "([<>=\\^])",
|
|
1814
1814
|
"name": "storage.type.format.python"
|
|
1815
1815
|
},
|
|
1816
1816
|
{
|
|
@@ -1838,7 +1838,7 @@
|
|
|
1838
1838
|
"name": "storage.type.format.python"
|
|
1839
1839
|
}
|
|
1840
1840
|
},
|
|
1841
|
-
"match": "((
|
|
1841
|
+
"match": "(=?(?:![rsa])?)(:\\w?[<>=\\^]?[\\-+ ]?#?\\d*,?(\\.\\d+)?[bcdeEfFgGnosxX%]?)(?=})"
|
|
1842
1842
|
},
|
|
1843
1843
|
{
|
|
1844
1844
|
"include": "#fstring-terminator-single-tail"
|
|
@@ -1846,7 +1846,7 @@
|
|
|
1846
1846
|
]
|
|
1847
1847
|
},
|
|
1848
1848
|
"fstring-terminator-single-tail": {
|
|
1849
|
-
"begin": "((
|
|
1849
|
+
"begin": "(=?(?:![rsa])?)(:)(?=.*?\\{)",
|
|
1850
1850
|
"beginCaptures": {
|
|
1851
1851
|
"1": {
|
|
1852
1852
|
"name": "storage.type.format.python"
|
|
@@ -1880,15 +1880,15 @@
|
|
|
1880
1880
|
"name": "storage.type.format.python"
|
|
1881
1881
|
},
|
|
1882
1882
|
{
|
|
1883
|
-
"match": "(
|
|
1883
|
+
"match": "(#)",
|
|
1884
1884
|
"name": "storage.type.format.python"
|
|
1885
1885
|
},
|
|
1886
1886
|
{
|
|
1887
|
-
"match": "([
|
|
1887
|
+
"match": "([\\-+ ])",
|
|
1888
1888
|
"name": "storage.type.format.python"
|
|
1889
1889
|
},
|
|
1890
1890
|
{
|
|
1891
|
-
"match": "([
|
|
1891
|
+
"match": "([<>=\\^])",
|
|
1892
1892
|
"name": "storage.type.format.python"
|
|
1893
1893
|
},
|
|
1894
1894
|
{
|
|
@@ -1978,7 +1978,7 @@
|
|
|
1978
1978
|
]
|
|
1979
1979
|
},
|
|
1980
1980
|
"function-declaration": {
|
|
1981
|
-
"begin": "\\s*(?:\\b(async)\\s+)?\\b(def)\\s+(?=[[:alpha:]_]
|
|
1981
|
+
"begin": "\\s*(?:\\b(async)\\s+)?\\b(def)\\s+(?=[[:alpha:]_]\\p{word}*\\s*\\()",
|
|
1982
1982
|
"beginCaptures": {
|
|
1983
1983
|
"1": {
|
|
1984
1984
|
"name": "storage.type.function.async.python"
|
|
@@ -2074,7 +2074,7 @@
|
|
|
2074
2074
|
"name": "keyword.control.import.python"
|
|
2075
2075
|
}
|
|
2076
2076
|
},
|
|
2077
|
-
"match": "\\b(?:(and|assert|async|await|break|class|continue|def|del|elif|else|except|finally|for|from|global|if|in|is|(?<=\\.)lambda|lambda(?=\\s*[
|
|
2077
|
+
"match": "\\b(?:(and|assert|async|await|break|class|continue|def|del|elif|else|except|finally|for|from|global|if|in|is|(?<=\\.)lambda|lambda(?=\\s*[.=])|nonlocal|not|or|pass|raise|return|try|while|with|yield)|(as|import))\\b"
|
|
2078
2078
|
},
|
|
2079
2079
|
"illegal-object-name": {
|
|
2080
2080
|
"match": "\\b(True|False|None)\\b",
|
|
@@ -2164,7 +2164,7 @@
|
|
|
2164
2164
|
"patterns": [
|
|
2165
2165
|
{
|
|
2166
2166
|
"begin": "\\b(?=[[:alpha:]_]\\w*\\s*\\[)",
|
|
2167
|
-
"end": "(
|
|
2167
|
+
"end": "(])",
|
|
2168
2168
|
"endCaptures": {
|
|
2169
2169
|
"1": {
|
|
2170
2170
|
"name": "punctuation.definition.arguments.end.python"
|
|
@@ -2193,7 +2193,7 @@
|
|
|
2193
2193
|
}
|
|
2194
2194
|
},
|
|
2195
2195
|
"contentName": "meta.item-access.arguments.python",
|
|
2196
|
-
"end": "(
|
|
2196
|
+
"end": "(?=])",
|
|
2197
2197
|
"patterns": [
|
|
2198
2198
|
{
|
|
2199
2199
|
"match": ":",
|
|
@@ -2232,7 +2232,7 @@
|
|
|
2232
2232
|
"name": "keyword.control.flow.python"
|
|
2233
2233
|
}
|
|
2234
2234
|
},
|
|
2235
|
-
"match": "((?<=\\.)lambda|lambda(?=\\s*[
|
|
2235
|
+
"match": "((?<=\\.)lambda|lambda(?=\\s*[.=]))"
|
|
2236
2236
|
},
|
|
2237
2237
|
{
|
|
2238
2238
|
"captures": {
|
|
@@ -2263,7 +2263,7 @@
|
|
|
2263
2263
|
"name": "keyword.operator.positional.parameter.python"
|
|
2264
2264
|
},
|
|
2265
2265
|
{
|
|
2266
|
-
"match": "(
|
|
2266
|
+
"match": "(\\*(?:\\*|))",
|
|
2267
2267
|
"name": "keyword.operator.unpacking.parameter.python"
|
|
2268
2268
|
},
|
|
2269
2269
|
{
|
|
@@ -2355,7 +2355,7 @@
|
|
|
2355
2355
|
"name": "punctuation.separator.continuation.line.python"
|
|
2356
2356
|
}
|
|
2357
2357
|
},
|
|
2358
|
-
"end": "(?=^\\s*$)|(?!(\\s*[rR]?(
|
|
2358
|
+
"end": "(?=^\\s*$)|(?!(\\s*[rR]?('''|\"\"\"|['\"]))|(\\G$))",
|
|
2359
2359
|
"patterns": [
|
|
2360
2360
|
{
|
|
2361
2361
|
"include": "#regexp"
|
|
@@ -2374,7 +2374,7 @@
|
|
|
2374
2374
|
"name": "punctuation.definition.list.begin.python"
|
|
2375
2375
|
}
|
|
2376
2376
|
},
|
|
2377
|
-
"end": "
|
|
2377
|
+
"end": "]",
|
|
2378
2378
|
"endCaptures": {
|
|
2379
2379
|
"0": {
|
|
2380
2380
|
"name": "punctuation.definition.list.end.python"
|
|
@@ -2546,7 +2546,7 @@
|
|
|
2546
2546
|
"name": "storage.type.number.python"
|
|
2547
2547
|
}
|
|
2548
2548
|
},
|
|
2549
|
-
"match": "(?<![\\w
|
|
2549
|
+
"match": "(?<![\\w.])(0[bB])(_?[01])+\\b",
|
|
2550
2550
|
"name": "constant.numeric.bin.python"
|
|
2551
2551
|
},
|
|
2552
2552
|
"number-dec": {
|
|
@@ -2558,7 +2558,7 @@
|
|
|
2558
2558
|
"name": "invalid.illegal.dec.python"
|
|
2559
2559
|
}
|
|
2560
2560
|
},
|
|
2561
|
-
"match": "(?<![\\w
|
|
2561
|
+
"match": "(?<![\\w.])(?:[1-9](?:_?[0-9])*|0+|[0-9](?:_?[0-9])*([jJ])|0([0-9]+)(?![eE.]))\\b",
|
|
2562
2562
|
"name": "constant.numeric.dec.python"
|
|
2563
2563
|
},
|
|
2564
2564
|
"number-float": {
|
|
@@ -2567,7 +2567,7 @@
|
|
|
2567
2567
|
"name": "storage.type.imaginary.number.python"
|
|
2568
2568
|
}
|
|
2569
2569
|
},
|
|
2570
|
-
"match": "(?<!\\w)(?:(?:\\.[0-9](?:_?[0-9])*|[0-9](?:_?[0-9])*\\.[0-9](?:_?[0-9])*|[0-9](?:_?[0-9])*\\.)(?:[eE][
|
|
2570
|
+
"match": "(?<!\\w)(?:(?:\\.[0-9](?:_?[0-9])*|[0-9](?:_?[0-9])*\\.[0-9](?:_?[0-9])*|[0-9](?:_?[0-9])*\\.)(?:[eE][+\\-]?[0-9](?:_?[0-9])*)?|[0-9](?:_?[0-9])*[eE][+\\-]?[0-9](?:_?[0-9])*)([jJ])?\\b",
|
|
2571
2571
|
"name": "constant.numeric.float.python"
|
|
2572
2572
|
},
|
|
2573
2573
|
"number-hex": {
|
|
@@ -2576,7 +2576,7 @@
|
|
|
2576
2576
|
"name": "storage.type.number.python"
|
|
2577
2577
|
}
|
|
2578
2578
|
},
|
|
2579
|
-
"match": "(?<![\\w
|
|
2579
|
+
"match": "(?<![\\w.])(0[xX])(_?\\h)+\\b",
|
|
2580
2580
|
"name": "constant.numeric.hex.python"
|
|
2581
2581
|
},
|
|
2582
2582
|
"number-long": {
|
|
@@ -2585,7 +2585,7 @@
|
|
|
2585
2585
|
"name": "storage.type.number.python"
|
|
2586
2586
|
}
|
|
2587
2587
|
},
|
|
2588
|
-
"match": "(?<![\\w
|
|
2588
|
+
"match": "(?<![\\w.])([1-9][0-9]*|0)([lL])\\b",
|
|
2589
2589
|
"name": "constant.numeric.bin.python"
|
|
2590
2590
|
},
|
|
2591
2591
|
"number-oct": {
|
|
@@ -2594,11 +2594,11 @@
|
|
|
2594
2594
|
"name": "storage.type.number.python"
|
|
2595
2595
|
}
|
|
2596
2596
|
},
|
|
2597
|
-
"match": "(?<![\\w
|
|
2597
|
+
"match": "(?<![\\w.])(0[oO])(_?[0-7])+\\b",
|
|
2598
2598
|
"name": "constant.numeric.oct.python"
|
|
2599
2599
|
},
|
|
2600
2600
|
"odd-function-call": {
|
|
2601
|
-
"begin": "(
|
|
2601
|
+
"begin": "(?<=[\\])])\\s*(?=\\()",
|
|
2602
2602
|
"end": "(\\))",
|
|
2603
2603
|
"endCaptures": {
|
|
2604
2604
|
"1": {
|
|
@@ -2632,7 +2632,7 @@
|
|
|
2632
2632
|
"name": "keyword.operator.assignment.python"
|
|
2633
2633
|
}
|
|
2634
2634
|
},
|
|
2635
|
-
"match": "\\b(?<!\\.)(?:(and|or|not|in|is)|(for|if|else|await|
|
|
2635
|
+
"match": "\\b(?<!\\.)(?:(and|or|not|in|is)|(for|if|else|await|yield(?:\\s+from)?))(?!\\s*:)\\b|(<<|>>|[\\&|\\^~])|(\\*\\*|[*+\\-%]|//|[/@])|(!=|==|>=|<=|[<>])|(:=)"
|
|
2636
2636
|
},
|
|
2637
2637
|
"parameter-special": {
|
|
2638
2638
|
"captures": {
|
|
@@ -2671,7 +2671,7 @@
|
|
|
2671
2671
|
"name": "keyword.operator.positional.parameter.python"
|
|
2672
2672
|
},
|
|
2673
2673
|
{
|
|
2674
|
-
"match": "(
|
|
2674
|
+
"match": "(\\*(?:\\*|))",
|
|
2675
2675
|
"name": "keyword.operator.unpacking.parameter.python"
|
|
2676
2676
|
},
|
|
2677
2677
|
{
|
|
@@ -2748,7 +2748,7 @@
|
|
|
2748
2748
|
"name": "support.other.parenthesis.regexp punctuation.parenthesis.backreference.named.end.regexp"
|
|
2749
2749
|
}
|
|
2750
2750
|
},
|
|
2751
|
-
"match": "(\\()(\\?P=\\w+(?:\\s
|
|
2751
|
+
"match": "(\\()(\\?P=\\w+(?:\\s+\\p{alnum}+)?)(\\))",
|
|
2752
2752
|
"name": "meta.backreference.named.regexp"
|
|
2753
2753
|
},
|
|
2754
2754
|
"regexp-backreference-number": {
|
|
@@ -2890,7 +2890,7 @@
|
|
|
2890
2890
|
"name": "constant.character.escape.regexp"
|
|
2891
2891
|
},
|
|
2892
2892
|
"regexp-escape-character": {
|
|
2893
|
-
"match": "\\\\(x
|
|
2893
|
+
"match": "\\\\(x\\h{2}|0[0-7]{1,2}|[0-7]{3})",
|
|
2894
2894
|
"name": "constant.character.escape.regexp"
|
|
2895
2895
|
},
|
|
2896
2896
|
"regexp-escape-sequence": {
|
|
@@ -2917,7 +2917,7 @@
|
|
|
2917
2917
|
"name": "support.other.escape.special.regexp"
|
|
2918
2918
|
},
|
|
2919
2919
|
"regexp-escape-unicode": {
|
|
2920
|
-
"match": "\\\\(u
|
|
2920
|
+
"match": "\\\\(u\\h{4}|U\\h{8})",
|
|
2921
2921
|
"name": "constant.character.unicode.regexp"
|
|
2922
2922
|
},
|
|
2923
2923
|
"regexp-flags": {
|
|
@@ -2925,11 +2925,11 @@
|
|
|
2925
2925
|
"name": "storage.modifier.flag.regexp"
|
|
2926
2926
|
},
|
|
2927
2927
|
"regexp-quantifier": {
|
|
2928
|
-
"match": "\\{(\\d+|\\d+,(\\d+)?|,\\d+)
|
|
2928
|
+
"match": "\\{(\\d+|\\d+,(\\d+)?|,\\d+)}",
|
|
2929
2929
|
"name": "keyword.operator.quantifier.regexp"
|
|
2930
2930
|
},
|
|
2931
2931
|
"regexp-single-one-line": {
|
|
2932
|
-
"begin": "\\b(([uU]r)|([bB]r)|(r[bB]?))(
|
|
2932
|
+
"begin": "\\b(([uU]r)|([bB]r)|(r[bB]?))(')",
|
|
2933
2933
|
"beginCaptures": {
|
|
2934
2934
|
"2": {
|
|
2935
2935
|
"name": "invalid.deprecated.prefix.python"
|
|
@@ -2944,7 +2944,7 @@
|
|
|
2944
2944
|
"name": "punctuation.definition.string.begin.python"
|
|
2945
2945
|
}
|
|
2946
2946
|
},
|
|
2947
|
-
"end": "(
|
|
2947
|
+
"end": "(')|(?<!\\\\)(\\n)",
|
|
2948
2948
|
"endCaptures": {
|
|
2949
2949
|
"1": {
|
|
2950
2950
|
"name": "punctuation.definition.string.end.python"
|
|
@@ -2961,7 +2961,7 @@
|
|
|
2961
2961
|
]
|
|
2962
2962
|
},
|
|
2963
2963
|
"regexp-single-three-line": {
|
|
2964
|
-
"begin": "\\b(([uU]r)|([bB]r)|(r[bB]?))(
|
|
2964
|
+
"begin": "\\b(([uU]r)|([bB]r)|(r[bB]?))(''')",
|
|
2965
2965
|
"beginCaptures": {
|
|
2966
2966
|
"2": {
|
|
2967
2967
|
"name": "invalid.deprecated.prefix.python"
|
|
@@ -2976,7 +2976,7 @@
|
|
|
2976
2976
|
"name": "punctuation.definition.string.begin.python"
|
|
2977
2977
|
}
|
|
2978
2978
|
},
|
|
2979
|
-
"end": "(
|
|
2979
|
+
"end": "(''')",
|
|
2980
2980
|
"endCaptures": {
|
|
2981
2981
|
"1": {
|
|
2982
2982
|
"name": "punctuation.definition.string.end.python"
|
|
@@ -3032,7 +3032,7 @@
|
|
|
3032
3032
|
"semicolon": {
|
|
3033
3033
|
"patterns": [
|
|
3034
3034
|
{
|
|
3035
|
-
"match": "
|
|
3035
|
+
"match": ";$",
|
|
3036
3036
|
"name": "invalid.deprecated.semicolon.python"
|
|
3037
3037
|
}
|
|
3038
3038
|
]
|
|
@@ -3040,10 +3040,10 @@
|
|
|
3040
3040
|
"single-one-regexp-character-set": {
|
|
3041
3041
|
"patterns": [
|
|
3042
3042
|
{
|
|
3043
|
-
"match": "\\[
|
|
3043
|
+
"match": "\\[\\^?](?!.*?])"
|
|
3044
3044
|
},
|
|
3045
3045
|
{
|
|
3046
|
-
"begin": "(\\[)(\\^)?(
|
|
3046
|
+
"begin": "(\\[)(\\^)?(])?",
|
|
3047
3047
|
"beginCaptures": {
|
|
3048
3048
|
"1": {
|
|
3049
3049
|
"name": "punctuation.character.set.begin.regexp constant.other.set.regexp"
|
|
@@ -3055,7 +3055,7 @@
|
|
|
3055
3055
|
"name": "constant.character.set.regexp"
|
|
3056
3056
|
}
|
|
3057
3057
|
},
|
|
3058
|
-
"end": "(
|
|
3058
|
+
"end": "(]|(?='))|((?=(?<!\\\\)\\n))",
|
|
3059
3059
|
"endCaptures": {
|
|
3060
3060
|
"1": {
|
|
3061
3061
|
"name": "punctuation.character.set.end.regexp constant.other.set.regexp"
|
|
@@ -3070,7 +3070,7 @@
|
|
|
3070
3070
|
"include": "#regexp-charecter-set-escapes"
|
|
3071
3071
|
},
|
|
3072
3072
|
{
|
|
3073
|
-
"match": "
|
|
3073
|
+
"match": "\\N",
|
|
3074
3074
|
"name": "constant.character.set.regexp"
|
|
3075
3075
|
}
|
|
3076
3076
|
]
|
|
@@ -3084,7 +3084,7 @@
|
|
|
3084
3084
|
"name": "punctuation.comment.begin.regexp"
|
|
3085
3085
|
}
|
|
3086
3086
|
},
|
|
3087
|
-
"end": "(\\)|(
|
|
3087
|
+
"end": "(\\)|(?='))|((?=(?<!\\\\)\\n))",
|
|
3088
3088
|
"endCaptures": {
|
|
3089
3089
|
"1": {
|
|
3090
3090
|
"name": "punctuation.comment.end.regexp"
|
|
@@ -3101,7 +3101,7 @@
|
|
|
3101
3101
|
]
|
|
3102
3102
|
},
|
|
3103
3103
|
"single-one-regexp-conditional": {
|
|
3104
|
-
"begin": "(\\()\\?\\((\\w+(?:\\s
|
|
3104
|
+
"begin": "(\\()\\?\\((\\w+(?:\\s+\\p{alnum}+)?|\\d+)\\)",
|
|
3105
3105
|
"beginCaptures": {
|
|
3106
3106
|
"0": {
|
|
3107
3107
|
"name": "keyword.operator.conditional.regexp"
|
|
@@ -3110,7 +3110,7 @@
|
|
|
3110
3110
|
"name": "punctuation.parenthesis.conditional.begin.regexp"
|
|
3111
3111
|
}
|
|
3112
3112
|
},
|
|
3113
|
-
"end": "(\\)|(
|
|
3113
|
+
"end": "(\\)|(?='))|((?=(?<!\\\\)\\n))",
|
|
3114
3114
|
"endCaptures": {
|
|
3115
3115
|
"1": {
|
|
3116
3116
|
"name": "keyword.operator.conditional.negative.regexp punctuation.parenthesis.conditional.end.regexp"
|
|
@@ -3178,7 +3178,7 @@
|
|
|
3178
3178
|
"name": "punctuation.parenthesis.lookahead.begin.regexp"
|
|
3179
3179
|
}
|
|
3180
3180
|
},
|
|
3181
|
-
"end": "(\\)|(
|
|
3181
|
+
"end": "(\\)|(?='))|((?=(?<!\\\\)\\n))",
|
|
3182
3182
|
"endCaptures": {
|
|
3183
3183
|
"1": {
|
|
3184
3184
|
"name": "keyword.operator.lookahead.regexp punctuation.parenthesis.lookahead.end.regexp"
|
|
@@ -3203,7 +3203,7 @@
|
|
|
3203
3203
|
"name": "punctuation.parenthesis.lookahead.begin.regexp"
|
|
3204
3204
|
}
|
|
3205
3205
|
},
|
|
3206
|
-
"end": "(\\)|(
|
|
3206
|
+
"end": "(\\)|(?='))|((?=(?<!\\\\)\\n))",
|
|
3207
3207
|
"endCaptures": {
|
|
3208
3208
|
"1": {
|
|
3209
3209
|
"name": "keyword.operator.lookahead.negative.regexp punctuation.parenthesis.lookahead.end.regexp"
|
|
@@ -3228,7 +3228,7 @@
|
|
|
3228
3228
|
"name": "punctuation.parenthesis.lookbehind.begin.regexp"
|
|
3229
3229
|
}
|
|
3230
3230
|
},
|
|
3231
|
-
"end": "(\\)|(
|
|
3231
|
+
"end": "(\\)|(?='))|((?=(?<!\\\\)\\n))",
|
|
3232
3232
|
"endCaptures": {
|
|
3233
3233
|
"1": {
|
|
3234
3234
|
"name": "keyword.operator.lookbehind.regexp punctuation.parenthesis.lookbehind.end.regexp"
|
|
@@ -3253,7 +3253,7 @@
|
|
|
3253
3253
|
"name": "punctuation.parenthesis.lookbehind.begin.regexp"
|
|
3254
3254
|
}
|
|
3255
3255
|
},
|
|
3256
|
-
"end": "(\\)|(
|
|
3256
|
+
"end": "(\\)|(?='))|((?=(?<!\\\\)\\n))",
|
|
3257
3257
|
"endCaptures": {
|
|
3258
3258
|
"1": {
|
|
3259
3259
|
"name": "keyword.operator.lookbehind.negative.regexp punctuation.parenthesis.lookbehind.end.regexp"
|
|
@@ -3269,7 +3269,7 @@
|
|
|
3269
3269
|
]
|
|
3270
3270
|
},
|
|
3271
3271
|
"single-one-regexp-named-group": {
|
|
3272
|
-
"begin": "(\\()(\\?P<\\w+(?:\\s
|
|
3272
|
+
"begin": "(\\()(\\?P<\\w+(?:\\s+\\p{alnum}+)?>)",
|
|
3273
3273
|
"beginCaptures": {
|
|
3274
3274
|
"1": {
|
|
3275
3275
|
"name": "support.other.parenthesis.regexp punctuation.parenthesis.named.begin.regexp"
|
|
@@ -3278,7 +3278,7 @@
|
|
|
3278
3278
|
"name": "entity.name.tag.named.group.regexp"
|
|
3279
3279
|
}
|
|
3280
3280
|
},
|
|
3281
|
-
"end": "(\\)|(
|
|
3281
|
+
"end": "(\\)|(?='))|((?=(?<!\\\\)\\n))",
|
|
3282
3282
|
"endCaptures": {
|
|
3283
3283
|
"1": {
|
|
3284
3284
|
"name": "support.other.parenthesis.regexp punctuation.parenthesis.named.end.regexp"
|
|
@@ -3301,7 +3301,7 @@
|
|
|
3301
3301
|
"name": "support.other.parenthesis.regexp punctuation.parenthesis.begin.regexp"
|
|
3302
3302
|
}
|
|
3303
3303
|
},
|
|
3304
|
-
"end": "(\\)|(
|
|
3304
|
+
"end": "(\\)|(?='))|((?=(?<!\\\\)\\n))",
|
|
3305
3305
|
"endCaptures": {
|
|
3306
3306
|
"1": {
|
|
3307
3307
|
"name": "support.other.parenthesis.regexp punctuation.parenthesis.end.regexp"
|
|
@@ -3323,7 +3323,7 @@
|
|
|
3323
3323
|
"name": "support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.begin.regexp"
|
|
3324
3324
|
}
|
|
3325
3325
|
},
|
|
3326
|
-
"end": "(\\)|(
|
|
3326
|
+
"end": "(\\)|(?='))|((?=(?<!\\\\)\\n))",
|
|
3327
3327
|
"endCaptures": {
|
|
3328
3328
|
"1": {
|
|
3329
3329
|
"name": "support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.end.regexp"
|
|
@@ -3341,10 +3341,10 @@
|
|
|
3341
3341
|
"single-three-regexp-character-set": {
|
|
3342
3342
|
"patterns": [
|
|
3343
3343
|
{
|
|
3344
|
-
"match": "\\[
|
|
3344
|
+
"match": "\\[\\^?](?!.*?])"
|
|
3345
3345
|
},
|
|
3346
3346
|
{
|
|
3347
|
-
"begin": "(\\[)(\\^)?(
|
|
3347
|
+
"begin": "(\\[)(\\^)?(])?",
|
|
3348
3348
|
"beginCaptures": {
|
|
3349
3349
|
"1": {
|
|
3350
3350
|
"name": "punctuation.character.set.begin.regexp constant.other.set.regexp"
|
|
@@ -3356,7 +3356,7 @@
|
|
|
3356
3356
|
"name": "constant.character.set.regexp"
|
|
3357
3357
|
}
|
|
3358
3358
|
},
|
|
3359
|
-
"end": "(
|
|
3359
|
+
"end": "(]|(?='''))",
|
|
3360
3360
|
"endCaptures": {
|
|
3361
3361
|
"1": {
|
|
3362
3362
|
"name": "punctuation.character.set.end.regexp constant.other.set.regexp"
|
|
@@ -3371,7 +3371,7 @@
|
|
|
3371
3371
|
"include": "#regexp-charecter-set-escapes"
|
|
3372
3372
|
},
|
|
3373
3373
|
{
|
|
3374
|
-
"match": "
|
|
3374
|
+
"match": "\\N",
|
|
3375
3375
|
"name": "constant.character.set.regexp"
|
|
3376
3376
|
}
|
|
3377
3377
|
]
|
|
@@ -3385,7 +3385,7 @@
|
|
|
3385
3385
|
"name": "punctuation.comment.begin.regexp"
|
|
3386
3386
|
}
|
|
3387
3387
|
},
|
|
3388
|
-
"end": "(\\)|(
|
|
3388
|
+
"end": "(\\)|(?='''))",
|
|
3389
3389
|
"endCaptures": {
|
|
3390
3390
|
"1": {
|
|
3391
3391
|
"name": "punctuation.comment.end.regexp"
|
|
@@ -3402,7 +3402,7 @@
|
|
|
3402
3402
|
]
|
|
3403
3403
|
},
|
|
3404
3404
|
"single-three-regexp-conditional": {
|
|
3405
|
-
"begin": "(\\()\\?\\((\\w+(?:\\s
|
|
3405
|
+
"begin": "(\\()\\?\\((\\w+(?:\\s+\\p{alnum}+)?|\\d+)\\)",
|
|
3406
3406
|
"beginCaptures": {
|
|
3407
3407
|
"0": {
|
|
3408
3408
|
"name": "keyword.operator.conditional.regexp"
|
|
@@ -3411,7 +3411,7 @@
|
|
|
3411
3411
|
"name": "punctuation.parenthesis.conditional.begin.regexp"
|
|
3412
3412
|
}
|
|
3413
3413
|
},
|
|
3414
|
-
"end": "(\\)|(
|
|
3414
|
+
"end": "(\\)|(?='''))",
|
|
3415
3415
|
"endCaptures": {
|
|
3416
3416
|
"1": {
|
|
3417
3417
|
"name": "keyword.operator.conditional.negative.regexp punctuation.parenthesis.conditional.end.regexp"
|
|
@@ -3485,7 +3485,7 @@
|
|
|
3485
3485
|
"name": "punctuation.parenthesis.lookahead.begin.regexp"
|
|
3486
3486
|
}
|
|
3487
3487
|
},
|
|
3488
|
-
"end": "(\\)|(
|
|
3488
|
+
"end": "(\\)|(?='''))",
|
|
3489
3489
|
"endCaptures": {
|
|
3490
3490
|
"1": {
|
|
3491
3491
|
"name": "keyword.operator.lookahead.regexp punctuation.parenthesis.lookahead.end.regexp"
|
|
@@ -3513,7 +3513,7 @@
|
|
|
3513
3513
|
"name": "punctuation.parenthesis.lookahead.begin.regexp"
|
|
3514
3514
|
}
|
|
3515
3515
|
},
|
|
3516
|
-
"end": "(\\)|(
|
|
3516
|
+
"end": "(\\)|(?='''))",
|
|
3517
3517
|
"endCaptures": {
|
|
3518
3518
|
"1": {
|
|
3519
3519
|
"name": "keyword.operator.lookahead.negative.regexp punctuation.parenthesis.lookahead.end.regexp"
|
|
@@ -3541,7 +3541,7 @@
|
|
|
3541
3541
|
"name": "punctuation.parenthesis.lookbehind.begin.regexp"
|
|
3542
3542
|
}
|
|
3543
3543
|
},
|
|
3544
|
-
"end": "(\\)|(
|
|
3544
|
+
"end": "(\\)|(?='''))",
|
|
3545
3545
|
"endCaptures": {
|
|
3546
3546
|
"1": {
|
|
3547
3547
|
"name": "keyword.operator.lookbehind.regexp punctuation.parenthesis.lookbehind.end.regexp"
|
|
@@ -3569,7 +3569,7 @@
|
|
|
3569
3569
|
"name": "punctuation.parenthesis.lookbehind.begin.regexp"
|
|
3570
3570
|
}
|
|
3571
3571
|
},
|
|
3572
|
-
"end": "(\\)|(
|
|
3572
|
+
"end": "(\\)|(?='''))",
|
|
3573
3573
|
"endCaptures": {
|
|
3574
3574
|
"1": {
|
|
3575
3575
|
"name": "keyword.operator.lookbehind.negative.regexp punctuation.parenthesis.lookbehind.end.regexp"
|
|
@@ -3588,7 +3588,7 @@
|
|
|
3588
3588
|
]
|
|
3589
3589
|
},
|
|
3590
3590
|
"single-three-regexp-named-group": {
|
|
3591
|
-
"begin": "(\\()(\\?P<\\w+(?:\\s
|
|
3591
|
+
"begin": "(\\()(\\?P<\\w+(?:\\s+\\p{alnum}+)?>)",
|
|
3592
3592
|
"beginCaptures": {
|
|
3593
3593
|
"1": {
|
|
3594
3594
|
"name": "support.other.parenthesis.regexp punctuation.parenthesis.named.begin.regexp"
|
|
@@ -3597,7 +3597,7 @@
|
|
|
3597
3597
|
"name": "entity.name.tag.named.group.regexp"
|
|
3598
3598
|
}
|
|
3599
3599
|
},
|
|
3600
|
-
"end": "(\\)|(
|
|
3600
|
+
"end": "(\\)|(?='''))",
|
|
3601
3601
|
"endCaptures": {
|
|
3602
3602
|
"1": {
|
|
3603
3603
|
"name": "support.other.parenthesis.regexp punctuation.parenthesis.named.end.regexp"
|
|
@@ -3623,7 +3623,7 @@
|
|
|
3623
3623
|
"name": "support.other.parenthesis.regexp punctuation.parenthesis.begin.regexp"
|
|
3624
3624
|
}
|
|
3625
3625
|
},
|
|
3626
|
-
"end": "(\\)|(
|
|
3626
|
+
"end": "(\\)|(?='''))",
|
|
3627
3627
|
"endCaptures": {
|
|
3628
3628
|
"1": {
|
|
3629
3629
|
"name": "support.other.parenthesis.regexp punctuation.parenthesis.end.regexp"
|
|
@@ -3648,7 +3648,7 @@
|
|
|
3648
3648
|
"name": "support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.begin.regexp"
|
|
3649
3649
|
}
|
|
3650
3650
|
},
|
|
3651
|
-
"end": "(\\)|(
|
|
3651
|
+
"end": "(\\)|(?='''))",
|
|
3652
3652
|
"endCaptures": {
|
|
3653
3653
|
"1": {
|
|
3654
3654
|
"name": "support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.end.regexp"
|
|
@@ -3667,7 +3667,7 @@
|
|
|
3667
3667
|
]
|
|
3668
3668
|
},
|
|
3669
3669
|
"special-names": {
|
|
3670
|
-
"match": "\\b(_
|
|
3670
|
+
"match": "\\b(_*\\p{upper}[_\\d]*\\p{upper})[[:upper:]\\d]*(_\\w*)?\\b",
|
|
3671
3671
|
"name": "constant.other.caps.python"
|
|
3672
3672
|
},
|
|
3673
3673
|
"special-variables": {
|
|
@@ -3780,7 +3780,7 @@
|
|
|
3780
3780
|
"name": "keyword.control.flow.python"
|
|
3781
3781
|
}
|
|
3782
3782
|
},
|
|
3783
|
-
"match": "^\\s*(case|match)(?=\\s*([
|
|
3783
|
+
"match": "^\\s*(case|match)(?=\\s*([\\-+\\w\\d(\\[{'\":#]|$))\\b"
|
|
3784
3784
|
}
|
|
3785
3785
|
]
|
|
3786
3786
|
},
|
|
@@ -3896,7 +3896,7 @@
|
|
|
3896
3896
|
"name": "storage.type.format.python"
|
|
3897
3897
|
}
|
|
3898
3898
|
},
|
|
3899
|
-
"match": "({{|}}
|
|
3899
|
+
"match": "(\\{\\{|}}|\\{\\w*(\\.[[:alpha:]_]\\w*|\\[[^\\]'\"]+])*(![rsa])?(:\\w?[<>=\\^]?[\\-+ ]?#?\\d*,?(\\.\\d+)?[bcdeEfFgGnosxX%]?)?})",
|
|
3900
3900
|
"name": "meta.format.brace.python"
|
|
3901
3901
|
},
|
|
3902
3902
|
{
|
|
@@ -3911,7 +3911,7 @@
|
|
|
3911
3911
|
"name": "storage.type.format.python"
|
|
3912
3912
|
}
|
|
3913
3913
|
},
|
|
3914
|
-
"match": "({\\w*(\\.[[:alpha:]_]\\w*|\\[[^\\]'\"]
|
|
3914
|
+
"match": "(\\{\\w*(\\.[[:alpha:]_]\\w*|\\[[^\\]'\"]+])*(![rsa])?(:)[^'\"{}\\n]*(?:\\{[^'\"}\\n]*?}[^'\"{}\\n]*)*})",
|
|
3915
3915
|
"name": "meta.format.brace.python"
|
|
3916
3916
|
}
|
|
3917
3917
|
]
|
|
@@ -3938,7 +3938,7 @@
|
|
|
3938
3938
|
"name": "constant.character.format.placeholder.other.python"
|
|
3939
3939
|
}
|
|
3940
3940
|
},
|
|
3941
|
-
"match": "(%(\\([\\w\\s]*\\))?[
|
|
3941
|
+
"match": "(%(\\([\\w\\s]*\\))?[\\-+#0 ]*(\\d+|\\*)?(\\.(\\d+|\\*))?([hlL])?[diouxXeEfFgGcrsab%])",
|
|
3942
3942
|
"name": "meta.format.percent.python"
|
|
3943
3943
|
},
|
|
3944
3944
|
"string-line-continuation": {
|
|
@@ -3946,7 +3946,7 @@
|
|
|
3946
3946
|
"name": "constant.language.python"
|
|
3947
3947
|
},
|
|
3948
3948
|
"string-multi-bad-brace1-formatting-raw": {
|
|
3949
|
-
"begin": "(?=\\{%(.*?(?!'''|\"\"\"))
|
|
3949
|
+
"begin": "(?=\\{%(.*?(?!'''|\"\"\"))%})",
|
|
3950
3950
|
"end": "(?='''|\"\"\")",
|
|
3951
3951
|
"patterns": [
|
|
3952
3952
|
{
|
|
@@ -3955,7 +3955,7 @@
|
|
|
3955
3955
|
]
|
|
3956
3956
|
},
|
|
3957
3957
|
"string-multi-bad-brace1-formatting-unicode": {
|
|
3958
|
-
"begin": "(?=\\{%(.*?(?!'''|\"\"\"))
|
|
3958
|
+
"begin": "(?=\\{%(.*?(?!'''|\"\"\"))%})",
|
|
3959
3959
|
"end": "(?='''|\"\"\")",
|
|
3960
3960
|
"patterns": [
|
|
3961
3961
|
{
|
|
@@ -3970,7 +3970,7 @@
|
|
|
3970
3970
|
]
|
|
3971
3971
|
},
|
|
3972
3972
|
"string-multi-bad-brace2-formatting-raw": {
|
|
3973
|
-
"begin": "(?!\\{\\{)(?=\\{(\\w*?(?!'''|\"\"\")[
|
|
3973
|
+
"begin": "(?!\\{\\{)(?=\\{(\\w*?(?!'''|\"\"\")[^!:.\\[}\\w]).*?(?!'''|\"\"\")})",
|
|
3974
3974
|
"end": "(?='''|\"\"\")",
|
|
3975
3975
|
"patterns": [
|
|
3976
3976
|
{
|
|
@@ -3982,7 +3982,7 @@
|
|
|
3982
3982
|
]
|
|
3983
3983
|
},
|
|
3984
3984
|
"string-multi-bad-brace2-formatting-unicode": {
|
|
3985
|
-
"begin": "(?!\\{\\{)(?=\\{(\\w*?(?!'''|\"\"\")[
|
|
3985
|
+
"begin": "(?!\\{\\{)(?=\\{(\\w*?(?!'''|\"\"\")[^!:.\\[}\\w]).*?(?!'''|\"\"\")})",
|
|
3986
3986
|
"end": "(?='''|\"\"\")",
|
|
3987
3987
|
"patterns": [
|
|
3988
3988
|
{
|
|
@@ -4209,7 +4209,7 @@
|
|
|
4209
4209
|
]
|
|
4210
4210
|
},
|
|
4211
4211
|
"string-single-bad-brace1-formatting-raw": {
|
|
4212
|
-
"begin": "(?=\\{%(.*?(?!(['\"])|((?<!\\\\)\\n)))
|
|
4212
|
+
"begin": "(?=\\{%(.*?(?!(['\"])|((?<!\\\\)\\n)))%})",
|
|
4213
4213
|
"end": "(?=(['\"])|((?<!\\\\)\\n))",
|
|
4214
4214
|
"patterns": [
|
|
4215
4215
|
{
|
|
@@ -4218,7 +4218,7 @@
|
|
|
4218
4218
|
]
|
|
4219
4219
|
},
|
|
4220
4220
|
"string-single-bad-brace1-formatting-unicode": {
|
|
4221
|
-
"begin": "(?=\\{%(.*?(?!(['\"])|((?<!\\\\)\\n)))
|
|
4221
|
+
"begin": "(?=\\{%(.*?(?!(['\"])|((?<!\\\\)\\n)))%})",
|
|
4222
4222
|
"end": "(?=(['\"])|((?<!\\\\)\\n))",
|
|
4223
4223
|
"patterns": [
|
|
4224
4224
|
{
|
|
@@ -4233,7 +4233,7 @@
|
|
|
4233
4233
|
]
|
|
4234
4234
|
},
|
|
4235
4235
|
"string-single-bad-brace2-formatting-raw": {
|
|
4236
|
-
"begin": "(?!\\{\\{)(?=\\{(\\w*?(?!(['\"])|((?<!\\\\)\\n))[
|
|
4236
|
+
"begin": "(?!\\{\\{)(?=\\{(\\w*?(?!(['\"])|((?<!\\\\)\\n))[^!:.\\[}\\w]).*?(?!(['\"])|((?<!\\\\)\\n))})",
|
|
4237
4237
|
"end": "(?=(['\"])|((?<!\\\\)\\n))",
|
|
4238
4238
|
"patterns": [
|
|
4239
4239
|
{
|
|
@@ -4245,7 +4245,7 @@
|
|
|
4245
4245
|
]
|
|
4246
4246
|
},
|
|
4247
4247
|
"string-single-bad-brace2-formatting-unicode": {
|
|
4248
|
-
"begin": "(?!\\{\\{)(?=\\{(\\w*?(?!(['\"])|((?<!\\\\)\\n))[
|
|
4248
|
+
"begin": "(?!\\{\\{)(?=\\{(\\w*?(?!(['\"])|((?<!\\\\)\\n))[^!:.\\[}\\w]).*?(?!(['\"])|((?<!\\\\)\\n))})",
|
|
4249
4249
|
"end": "(?=(['\"])|((?<!\\\\)\\n))",
|
|
4250
4250
|
"patterns": [
|
|
4251
4251
|
{
|