tm-grammars 1.5.2 → 1.5.4
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/README.md +5 -5
- package/grammars/gleam.json +98 -95
- package/grammars/glimmer-js.json +2 -2
- package/grammars/glimmer-ts.json +2 -2
- package/grammars/mojo.json +10 -17
- package/grammars/shellscript.json +521 -274
- package/index.js +18 -18
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -75,9 +75,9 @@ import { grammars } from 'tm-grammars'
|
|
|
75
75
|
| `gherkin` | | [alexkrechik/VSCucumberAutoComplete](https://github.com/alexkrechik/VSCucumberAutoComplete/blob/fc8da969b1c83e13ef5124b1ec90ba5211bc1e5f/gclient/syntaxes/feature.tmLanguage) | [MIT](https://raw.githubusercontent.com/alexkrechik/VSCucumberAutoComplete/master/LICENSE) | | 12.13 kB |
|
|
76
76
|
| `git-commit` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/f8c3f89468fea14103d8790d59ea8594d6e644eb/extensions/git-base/syntaxes/git-commit.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `diff` | 1.36 kB |
|
|
77
77
|
| `git-rebase` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/e95c74c4c7af876e79ec58df262464467c06df28/extensions/git-base/syntaxes/git-rebase.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `shellscript` | 818.00 B |
|
|
78
|
-
| `gleam` | | [gleam-lang/vscode-gleam](https://github.com/gleam-lang/vscode-gleam/blob/
|
|
79
|
-
| `glimmer-js` | `gjs` | [lifeart/vsc-ember-syntax](https://github.com/lifeart/vsc-ember-syntax/blob/
|
|
80
|
-
| `glimmer-ts` | `gts` | [lifeart/vsc-ember-syntax](https://github.com/lifeart/vsc-ember-syntax/blob/
|
|
78
|
+
| `gleam` | | [gleam-lang/vscode-gleam](https://github.com/gleam-lang/vscode-gleam/blob/755b168864d3ae92bab27cbfd80788ec021a36e7/syntaxes/gleam.tmLanguage.json) | [Apache-2.0](https://raw.githubusercontent.com/gleam-lang/vscode-gleam/main/LICENSE.txt) | | 2.39 kB |
|
|
79
|
+
| `glimmer-js` | `gjs` | [lifeart/vsc-ember-syntax](https://github.com/lifeart/vsc-ember-syntax/blob/76fce7b360ce09a78789e7d5217b8955d1a5d95f/syntaxes/source.gjs.json) | [MIT](https://raw.githubusercontent.com/lifeart/vsc-ember-syntax/master/LICENSE) | `javascript` `typescript` `css` `html` | 19.08 kB |
|
|
80
|
+
| `glimmer-ts` | `gts` | [lifeart/vsc-ember-syntax](https://github.com/lifeart/vsc-ember-syntax/blob/76fce7b360ce09a78789e7d5217b8955d1a5d95f/syntaxes/source.gts.json) | [MIT](https://raw.githubusercontent.com/lifeart/vsc-ember-syntax/master/LICENSE) | `typescript` `css` `javascript` `html` | 19.08 kB |
|
|
81
81
|
| `glsl` | | [polym0rph/GLSL.tmbundle](https://github.com/polym0rph/GLSL.tmbundle/blob/6998d3bbd204e26746a5ca580cda4c650b9057b1/Syntaxes/GLSL.tmLanguage) | | `c` | 3.69 kB |
|
|
82
82
|
| `gnuplot` | | [MarioSchwalbe/vscode-gnuplot](https://github.com/MarioSchwalbe/vscode-gnuplot/blob/c62c1a61c9b6b4658b43d76c397dc2ad43523b6a/syntaxes/gnuplot.tmLanguage) | [GPL-3.0](https://raw.githubusercontent.com/MarioSchwalbe/vscode-gnuplot/master/LICENSE) | | 16.46 kB |
|
|
83
83
|
| `go` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/e9a8b6add5329f8124f23ff7143d95c22ce39f76/extensions/go/syntaxes/go.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 43.26 kB |
|
|
@@ -122,7 +122,7 @@ import { grammars } from 'tm-grammars'
|
|
|
122
122
|
| `mdc` | | [nuxtlabs/vscode-mdc](https://github.com/nuxtlabs/vscode-mdc/blob/6294dbce9706f538a521e7dccce9609e928dc3be/syntaxes/mdc.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/nuxtlabs/vscode-mdc/main/LICENSE) | `markdown` `yaml` `html-derivative` | 19.05 kB |
|
|
123
123
|
| `mdx` | | [wooorm/markdown-tm-language](https://github.com/wooorm/markdown-tm-language/blob/371d61df9ddc3850e12aabe61b602d02e259e8a4/source.mdx.tmLanguage) | [MIT](https://raw.githubusercontent.com/wooorm/markdown-tm-language/main/license) | `tsx` `toml` `yaml` `c` `clojure` `coffee` `cpp` `csharp` `css` `diff` `docker` `elixir` `elm` `erlang` `go` `graphql` `haskell` `html` `ini` `java` `javascript` `json` `julia` `kotlin` `less` `lua` `make` `markdown` `objective-c` `perl` `python` `r` `ruby` `rust` `scala` `scss` `shellscript` `shellsession` `sql` `xml` `swift` `typescript` | 120.76 kB |
|
|
124
124
|
| `mermaid` | | [bpruitt-goddard/vscode-mermaid-syntax-highlight](https://github.com/bpruitt-goddard/vscode-mermaid-syntax-highlight/blob/8b62f487cb7a89afcd152febfbf47f5d4787657f/syntaxes/mermaid.tmLanguage.yaml) | [MIT](https://raw.githubusercontent.com/bpruitt-goddard/vscode-mermaid-syntax-highlight/master/LICENSE) | | 19.88 kB |
|
|
125
|
-
| `mojo` | | [modularml/mojo-syntax](https://github.com/modularml/mojo-syntax/blob/
|
|
125
|
+
| `mojo` | | [modularml/mojo-syntax](https://github.com/modularml/mojo-syntax/blob/46eccdaeda2b1587e9b82808cdb35670f359d16d/syntaxes/mojo.syntax.json) | [MIT](https://raw.githubusercontent.com/modularml/mojo-syntax/main/LICENSE) | | 72.91 kB |
|
|
126
126
|
| `move` | | [damirka/move-syntax](https://github.com/damirka/move-syntax/blob/ec2884fdaee236db42d8999e5f9cd2923e317f8b/syntaxes/move.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/damirka/move-syntax/main/LICENSE) | | 16.28 kB |
|
|
127
127
|
| `narrat` | `nar` | [liana-p/narrat-syntax-highlighting-vscode](https://github.com/liana-p/narrat-syntax-highlighting-vscode/blob/00d4b410338fc50ca0ce77a1f7e873c1fb66d376/syntaxes/narrat.tmLanguage.yaml) | [MIT](https://raw.githubusercontent.com/liana-p/narrat-syntax-highlighting-vscode/main/LICENSE) | | 3.41 kB |
|
|
128
128
|
| `nextflow` | `nf` | [nextflow-io/vscode-language-nextflow](https://github.com/nextflow-io/vscode-language-nextflow/blob/7eeb9be8d01556b7c51c59307275c2f720f2ddf4/syntaxes/nextflow.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/nextflow-io/vscode-language-nextflow/master/LICENSE.md) | | 4.40 kB |
|
|
@@ -162,7 +162,7 @@ import { grammars } from 'tm-grammars'
|
|
|
162
162
|
| `scheme` | | [sjhuangx/vscode-scheme](https://github.com/sjhuangx/vscode-scheme/blob/4e21683666e1e2edfa21d040ecd427f628e7b5ff/syntaxes/scheme.tmLanguage) | [MIT](https://raw.githubusercontent.com/sjhuangx/vscode-scheme/master/LICENSE.md) | | 8.35 kB |
|
|
163
163
|
| `scss` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/cf8d61ebd2f022f4ce8280171f0360d1fe0a206d/extensions/scss/syntaxes/scss.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `css` | 26.21 kB |
|
|
164
164
|
| `shaderlab` | `shader` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/8fdf170a0850c1cc027382f31650aaf300d3ae2a/extensions/shaderlab/syntaxes/shaderlab.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `hlsl` | 5.83 kB |
|
|
165
|
-
| `shellscript` | `bash` `sh` `shell` `zsh` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/
|
|
165
|
+
| `shellscript` | `bash` `sh` `shell` `zsh` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/6285faddc6bbce7e605c04f8ab4364fdc6aa2f04/extensions/shellscript/syntaxes/shell-unix-bash.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 38.67 kB |
|
|
166
166
|
| `shellsession` | `console` | [hronro/sublime-linguist-syntax](https://github.com/hronro/sublime-linguist-syntax/blob/9c84f1d69dbe89bc23292f129cf2d408a9c7afe1/syntaxes/ShellSession.tmLanguage) | [MIT](https://raw.githubusercontent.com/hronro/sublime-linguist-syntax/master/LICENSE) | `shellscript` | 567.00 B |
|
|
167
167
|
| `smalltalk` | | [leocamello/vscode-smalltalk](https://github.com/leocamello/vscode-smalltalk/blob/bc888519a21740b4dbd4edcf2f884c61855dc58b/syntaxes/smalltalk.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/leocamello/vscode-smalltalk/master/LICENSE) | | 3.91 kB |
|
|
168
168
|
| `solidity` | | [juanfranblanco/vscode-solidity](https://github.com/juanfranblanco/vscode-solidity/blob/75531be0beda99b7293d778eb0b1c63f70d8ac59/syntaxes/solidity.json) | [MIT](https://raw.githubusercontent.com/juanfranblanco/vscode-solidity/master/License.txt) | | 15.15 kB |
|
package/grammars/gleam.json
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "Gleam",
|
|
3
|
-
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
|
|
4
3
|
"name": "gleam",
|
|
5
|
-
"fileTypes": ["gleam"],
|
|
6
4
|
"patterns": [
|
|
7
5
|
{
|
|
8
6
|
"include": "#comments"
|
|
@@ -21,74 +19,23 @@
|
|
|
21
19
|
}
|
|
22
20
|
],
|
|
23
21
|
"repository": {
|
|
24
|
-
"
|
|
22
|
+
"binary_number": {
|
|
23
|
+
"match": "\\b0b[0-1]+\\b",
|
|
24
|
+
"name": "constant.numeric.binary.gleam",
|
|
25
25
|
"patterns": [
|
|
26
|
-
{
|
|
27
|
-
"name": "keyword.control.gleam",
|
|
28
|
-
"match": "\\b(as|use|case|if|fn|import|let|assert|pub|type|opaque|const|todo|panic)\\b"
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"name": "keyword.operator.arrow.gleam",
|
|
32
|
-
"match": "(<\\-|\\->)"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"name": "keyword.operator.pipe.gleam",
|
|
36
|
-
"match": "\\|>"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"name": "keyword.operator.splat.gleam",
|
|
40
|
-
"match": "\\.\\."
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"name": "keyword.operator.comparison.float.gleam",
|
|
44
|
-
"match": "(<=\\.|>=\\.|==\\.|!=\\.|<\\.|>\\.)"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"name": "keyword.operator.comparison.int.gleam",
|
|
48
|
-
"match": "(<=|>=|==|!=|<|>)"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"name": "keyword.operator.logical.gleam",
|
|
52
|
-
"match": "(&&|\\|\\|)"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"name": "keyword.operator.string.gleam",
|
|
56
|
-
"match": "<>"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"name": "keyword.operator.other.gleam",
|
|
60
|
-
"match": "\\|"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"name": "keyword.operator.arithmetic.float.gleam",
|
|
64
|
-
"match": "(\\+\\.|\\-\\.|/\\.|\\*\\.|%\\.)"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"name": "keyword.operator.arithmetic.int.gleam",
|
|
68
|
-
"match": "(\\+|\\-|/|\\*|%)"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"name": "keyword.operator.assignment.gleam",
|
|
72
|
-
"match": "="
|
|
73
|
-
}
|
|
74
26
|
]
|
|
75
27
|
},
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"end": "\"",
|
|
28
|
+
"boolean": {
|
|
29
|
+
"match": "\\b(True|False)\\b",
|
|
30
|
+
"name": "constant.language.boolean.gleam",
|
|
80
31
|
"patterns": [
|
|
81
|
-
{
|
|
82
|
-
"name": "constant.character.escape.gleam",
|
|
83
|
-
"match": "\\\\."
|
|
84
|
-
}
|
|
85
32
|
]
|
|
86
33
|
},
|
|
87
34
|
"comments": {
|
|
88
35
|
"patterns": [
|
|
89
36
|
{
|
|
90
|
-
"
|
|
91
|
-
"
|
|
37
|
+
"match": "//.*",
|
|
38
|
+
"name": "comment.line.gleam"
|
|
92
39
|
}
|
|
93
40
|
]
|
|
94
41
|
},
|
|
@@ -110,59 +57,115 @@
|
|
|
110
57
|
"include": "#boolean"
|
|
111
58
|
},
|
|
112
59
|
{
|
|
113
|
-
"
|
|
114
|
-
"
|
|
60
|
+
"match": "[[:upper:]][[:word:]]*",
|
|
61
|
+
"name": "entity.name.type.gleam"
|
|
115
62
|
}
|
|
116
63
|
]
|
|
117
64
|
},
|
|
118
|
-
"binary_number": {
|
|
119
|
-
"name": "constant.numeric.binary.gleam",
|
|
120
|
-
"match": "\\b0b[0-1]+\\b",
|
|
121
|
-
"patterns": []
|
|
122
|
-
},
|
|
123
|
-
"octal_number": {
|
|
124
|
-
"name": "constant.numeric.octal.gleam",
|
|
125
|
-
"match": "\\b0o[0-7]+\\b",
|
|
126
|
-
"patterns": []
|
|
127
|
-
},
|
|
128
65
|
"decimal_number": {
|
|
66
|
+
"match": "\\b[[:digit:]]+(_?[[:digit:]])*(\\.[[:digit:]]*)?(e-?[[:digit:]]*)?\\b",
|
|
129
67
|
"name": "constant.numeric.decimal.gleam",
|
|
130
|
-
"
|
|
131
|
-
|
|
132
|
-
},
|
|
133
|
-
"hexadecimal_number": {
|
|
134
|
-
"name": "constant.numeric.hexadecimal.gleam",
|
|
135
|
-
"match": "\\b0x[[:xdigit:]]+\\b",
|
|
136
|
-
"patterns": []
|
|
137
|
-
},
|
|
138
|
-
"boolean": {
|
|
139
|
-
"name": "constant.language.boolean.gleam",
|
|
140
|
-
"match": "\\b(True|False)\\b",
|
|
141
|
-
"patterns": []
|
|
68
|
+
"patterns": [
|
|
69
|
+
]
|
|
142
70
|
},
|
|
143
71
|
"entity": {
|
|
144
72
|
"patterns": [
|
|
145
73
|
{
|
|
146
74
|
"begin": "\\b([[:lower:]][[:word:]]*)([[:space:]]*)?\\(",
|
|
75
|
+
"captures": {
|
|
76
|
+
"1": {
|
|
77
|
+
"name": "entity.name.function.gleam"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
147
80
|
"end": "\\)",
|
|
148
81
|
"patterns": [
|
|
149
82
|
{
|
|
150
83
|
"include": "$self"
|
|
151
84
|
}
|
|
152
|
-
]
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"match": "\\b([[:lower:]][[:word:]]*):\\s",
|
|
89
|
+
"name": "variable.parameter.gleam"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"match": "\\b([[:lower:]][[:word:]]*):",
|
|
93
|
+
"name": "entity.name.namespace.gleam"
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
"hexadecimal_number": {
|
|
98
|
+
"match": "\\b0x[[:xdigit:]]+\\b",
|
|
99
|
+
"name": "constant.numeric.hexadecimal.gleam",
|
|
100
|
+
"patterns": [
|
|
101
|
+
]
|
|
102
|
+
},
|
|
103
|
+
"keywords": {
|
|
104
|
+
"patterns": [
|
|
105
|
+
{
|
|
106
|
+
"match": "\\b(as|use|case|if|fn|import|let|assert|pub|type|opaque|const|todo|panic)\\b",
|
|
107
|
+
"name": "keyword.control.gleam"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"match": "(<\\-|\\->)",
|
|
111
|
+
"name": "keyword.operator.arrow.gleam"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"match": "\\|>",
|
|
115
|
+
"name": "keyword.operator.pipe.gleam"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"match": "\\.\\.",
|
|
119
|
+
"name": "keyword.operator.splat.gleam"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"match": "(<=\\.|>=\\.|==\\.|!=\\.|<\\.|>\\.)",
|
|
123
|
+
"name": "keyword.operator.comparison.float.gleam"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"match": "(<=|>=|==|!=|<|>)",
|
|
127
|
+
"name": "keyword.operator.comparison.int.gleam"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"match": "(&&|\\|\\|)",
|
|
131
|
+
"name": "keyword.operator.logical.gleam"
|
|
158
132
|
},
|
|
159
133
|
{
|
|
160
|
-
"
|
|
161
|
-
"
|
|
134
|
+
"match": "<>",
|
|
135
|
+
"name": "keyword.operator.string.gleam"
|
|
162
136
|
},
|
|
163
137
|
{
|
|
164
|
-
"
|
|
165
|
-
"
|
|
138
|
+
"match": "\\|",
|
|
139
|
+
"name": "keyword.operator.other.gleam"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"match": "(\\+\\.|\\-\\.|/\\.|\\*\\.|%\\.)",
|
|
143
|
+
"name": "keyword.operator.arithmetic.float.gleam"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"match": "(\\+|\\-|/|\\*|%)",
|
|
147
|
+
"name": "keyword.operator.arithmetic.int.gleam"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"match": "=",
|
|
151
|
+
"name": "keyword.operator.assignment.gleam"
|
|
152
|
+
}
|
|
153
|
+
]
|
|
154
|
+
},
|
|
155
|
+
"octal_number": {
|
|
156
|
+
"match": "\\b0o[0-7]+\\b",
|
|
157
|
+
"name": "constant.numeric.octal.gleam",
|
|
158
|
+
"patterns": [
|
|
159
|
+
]
|
|
160
|
+
},
|
|
161
|
+
"strings": {
|
|
162
|
+
"begin": "\"",
|
|
163
|
+
"end": "\"",
|
|
164
|
+
"name": "string.quoted.double.gleam",
|
|
165
|
+
"patterns": [
|
|
166
|
+
{
|
|
167
|
+
"match": "\\\\.",
|
|
168
|
+
"name": "constant.character.escape.gleam"
|
|
166
169
|
}
|
|
167
170
|
]
|
|
168
171
|
}
|
package/grammars/glimmer-js.json
CHANGED
package/grammars/glimmer-ts.json
CHANGED
package/grammars/mojo.json
CHANGED
|
@@ -1057,9 +1057,6 @@
|
|
|
1057
1057
|
{
|
|
1058
1058
|
"include": "#backticks"
|
|
1059
1059
|
},
|
|
1060
|
-
{
|
|
1061
|
-
"include": "#illegal-anno"
|
|
1062
|
-
},
|
|
1063
1060
|
{
|
|
1064
1061
|
"include": "#literal"
|
|
1065
1062
|
},
|
|
@@ -1813,7 +1810,7 @@
|
|
|
1813
1810
|
"name": "meta.function.python",
|
|
1814
1811
|
"patterns": [
|
|
1815
1812
|
{
|
|
1816
|
-
"include": "#
|
|
1813
|
+
"include": "#function-modifier"
|
|
1817
1814
|
},
|
|
1818
1815
|
{
|
|
1819
1816
|
"include": "#function-def-name"
|
|
@@ -1846,6 +1843,10 @@
|
|
|
1846
1843
|
}
|
|
1847
1844
|
]
|
|
1848
1845
|
},
|
|
1846
|
+
"function-modifier": {
|
|
1847
|
+
"match": "(raises|capturing)",
|
|
1848
|
+
"name": "storage.modifier"
|
|
1849
|
+
},
|
|
1849
1850
|
"function-name": {
|
|
1850
1851
|
"patterns": [
|
|
1851
1852
|
{
|
|
@@ -1878,20 +1879,19 @@
|
|
|
1878
1879
|
}
|
|
1879
1880
|
]
|
|
1880
1881
|
},
|
|
1881
|
-
"illegal-anno": {
|
|
1882
|
-
"match": "->",
|
|
1883
|
-
"name": "invalid.illegal.annotation.python"
|
|
1884
|
-
},
|
|
1885
1882
|
"illegal-names": {
|
|
1886
1883
|
"captures": {
|
|
1887
1884
|
"1": {
|
|
1888
1885
|
"name": "keyword.control.flow.python"
|
|
1889
1886
|
},
|
|
1890
1887
|
"2": {
|
|
1888
|
+
"name": "storage.type.function.python"
|
|
1889
|
+
},
|
|
1890
|
+
"3": {
|
|
1891
1891
|
"name": "keyword.control.import.python"
|
|
1892
1892
|
}
|
|
1893
1893
|
},
|
|
1894
|
-
"match": "(?x)\n\\b(?:\n(\nand | assert | async | await | break | class | struct | trait | continue |
|
|
1894
|
+
"match": "(?x)\n\\b(?:\n(\nand | assert | async | await | break | class | struct | trait | continue | del | elif | else | except | finally | for | from | global\n| if | in | is | (?<=\\.)lambda | lambda(?=\\s*[\\.=])\n| nonlocal | not | or | pass | raise | return | try | while | with\n| yield\n) | (def | fn | capturing | raises) | (\nas | import\n)\n)\\b\n"
|
|
1895
1895
|
},
|
|
1896
1896
|
"illegal-object-name": {
|
|
1897
1897
|
"comment": "It's illegal to name class or function \"True\"",
|
|
@@ -2111,9 +2111,6 @@
|
|
|
2111
2111
|
{
|
|
2112
2112
|
"include": "#backticks"
|
|
2113
2113
|
},
|
|
2114
|
-
{
|
|
2115
|
-
"include": "#illegal-anno"
|
|
2116
|
-
},
|
|
2117
2114
|
{
|
|
2118
2115
|
"include": "#lambda-parameter-with-default"
|
|
2119
2116
|
},
|
|
@@ -2590,10 +2587,6 @@
|
|
|
2590
2587
|
}
|
|
2591
2588
|
]
|
|
2592
2589
|
},
|
|
2593
|
-
"raises-modifier": {
|
|
2594
|
-
"match": "(raises)",
|
|
2595
|
-
"name": "storage.modifier"
|
|
2596
|
-
},
|
|
2597
2590
|
"regexp": {
|
|
2598
2591
|
"patterns": [
|
|
2599
2592
|
{
|
|
@@ -3582,7 +3575,7 @@
|
|
|
3582
3575
|
"statement-keyword": {
|
|
3583
3576
|
"patterns": [
|
|
3584
3577
|
{
|
|
3585
|
-
"match": "\\b((async\\s+)?\\s*def)\\b",
|
|
3578
|
+
"match": "\\b((async\\s+)?\\s*(def|fn))\\b",
|
|
3586
3579
|
"name": "storage.type.function.python"
|
|
3587
3580
|
},
|
|
3588
3581
|
{
|