tm-grammars 1.12.5 → 1.12.6
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 +2 -2
- package/grammars/go.json +48 -12
- package/grammars/tex.json +19 -1
- package/index.js +8 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -88,7 +88,7 @@ import { grammars } from 'tm-grammars'
|
|
|
88
88
|
| `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 |
|
|
89
89
|
| `glsl` | | [polym0rph/GLSL.tmbundle](https://github.com/polym0rph/GLSL.tmbundle/blob/6998d3bbd204e26746a5ca580cda4c650b9057b1/Syntaxes/GLSL.tmLanguage) | | `c` | 3.69 kB |
|
|
90
90
|
| `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 |
|
|
91
|
-
| `go` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/
|
|
91
|
+
| `go` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/b8e3432a0b7dd11ffd0c832fad6a6c51e809013c/extensions/go/syntaxes/go.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 45.69 kB |
|
|
92
92
|
| `graphql` | `gql` | [prisma-labs/vscode-graphql](https://github.com/prisma-labs/vscode-graphql/blob/4569aef2364b42b6acd8188e4a6ca9b0ba3c6a1d/grammars/graphql.json) | [MIT](https://raw.githubusercontent.com/graphql/vscode-graphql/master/LICENSE) | `javascript` `typescript` `jsx` `tsx` | 17.11 kB |
|
|
93
93
|
| `groovy` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/8fdf170a0850c1cc027382f31650aaf300d3ae2a/extensions/groovy/syntaxes/groovy.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 18.63 kB |
|
|
94
94
|
| `hack` | | [slackhq/vscode-hack](https://github.com/slackhq/vscode-hack/blob/b997653188b127a7261b0d26e7808217f3eb47bb/syntaxes/hack.json) | [MIT](https://raw.githubusercontent.com/slackhq/vscode-hack/master/LICENSE.md) | `html` `sql` | 80.66 kB |
|
|
@@ -197,7 +197,7 @@ import { grammars } from 'tm-grammars'
|
|
|
197
197
|
| `tasl` | | [underlay/vscode-tasl](https://github.com/underlay/vscode-tasl/blob/dde4b7c0b762c2e667584095362dd49ebfacece7/syntaxes/tasl.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/underlay/vscode-tasl/main/LICENSE) | | 3.21 kB |
|
|
198
198
|
| `tcl` | | [sleutho/tcl](https://github.com/sleutho/tcl/blob/f18820ad14678bc033f0a35524820c90fe50f18b/syntaxes/tcl.tmLanguage) | | | 4.66 kB |
|
|
199
199
|
| `terraform` | `tf` `tfvars` | [hashicorp/syntax](https://github.com/hashicorp/syntax/blob/c693badea4d460d1c05b8d2ab0c88bad143da3f1/syntaxes/terraform.tmGrammar.json) | [MPL-2.0](https://raw.githubusercontent.com/hashicorp/syntax/main/LICENSE) | | 12.58 kB |
|
|
200
|
-
| `tex` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/
|
|
200
|
+
| `tex` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/b8e3432a0b7dd11ffd0c832fad6a6c51e809013c/extensions/latex/syntaxes/TeX.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `r` | 8.77 kB |
|
|
201
201
|
| `toml` | | [textmate/toml.tmbundle](https://github.com/textmate/toml.tmbundle/blob/e82b64c1e86396220786846201e9aa3f0a2d9ca2/Syntaxes/TOML.tmLanguage) | | | 6.26 kB |
|
|
202
202
|
| `tsv` | | [mechatroner/vscode_rainbow_csv](https://github.com/mechatroner/vscode_rainbow_csv/blob/00d4c947f1bbe6a4a73599bd97fb31bdfbe262f3/syntaxes/tsv.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/mechatroner/vscode_rainbow_csv/master/LICENSE) | | 633.00 B |
|
|
203
203
|
| `tsx` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/35d97bc7e439fce0f50f42074041ab2d8571b20a/extensions/typescript-basics/syntaxes/TypeScriptReact.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 171.16 kB |
|
package/grammars/go.json
CHANGED
|
@@ -140,7 +140,8 @@
|
|
|
140
140
|
]
|
|
141
141
|
},
|
|
142
142
|
{
|
|
143
|
-
"
|
|
143
|
+
"begin": "(?:(\\bmake\\b)(?:(\\()((?:(?:(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+(?:\\([^\\)]+\\))?)?(?:[\\[\\]\\*]+)?(?:(?!\\bmap\\b)(?:[\\w\\.]+))?(\\[(?:(?:[\\S]+)(?:(?:\\,\\s*(?:[\\S]+))*))?\\])?(?:\\,)?)?))",
|
|
144
|
+
"beginCaptures": {
|
|
144
145
|
"1": {
|
|
145
146
|
"name": "entity.name.function.support.builtin.go"
|
|
146
147
|
},
|
|
@@ -160,20 +161,20 @@
|
|
|
160
161
|
"name": "entity.name.type.go"
|
|
161
162
|
}
|
|
162
163
|
]
|
|
163
|
-
},
|
|
164
|
-
"4": {
|
|
165
|
-
"patterns": [
|
|
166
|
-
{
|
|
167
|
-
"include": "$self"
|
|
168
|
-
}
|
|
169
|
-
]
|
|
170
|
-
},
|
|
171
|
-
"5": {
|
|
172
|
-
"name": "punctuation.definition.end.bracket.round.go"
|
|
173
164
|
}
|
|
174
165
|
},
|
|
175
166
|
"comment": "make keyword",
|
|
176
|
-
"
|
|
167
|
+
"end": "\\)",
|
|
168
|
+
"endCaptures": {
|
|
169
|
+
"0": {
|
|
170
|
+
"name": "punctuation.definition.end.bracket.round.go"
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
"patterns": [
|
|
174
|
+
{
|
|
175
|
+
"include": "$self"
|
|
176
|
+
}
|
|
177
|
+
]
|
|
177
178
|
}
|
|
178
179
|
]
|
|
179
180
|
},
|
|
@@ -255,6 +256,38 @@
|
|
|
255
256
|
"comment": "double parentheses types",
|
|
256
257
|
"match": "(?:(?<!\\w)(\\((?:[\\w\\.\\[\\]\\*\\&]+)\\))(?=\\())"
|
|
257
258
|
},
|
|
259
|
+
"field_hover": {
|
|
260
|
+
"captures": {
|
|
261
|
+
"1": {
|
|
262
|
+
"patterns": [
|
|
263
|
+
{
|
|
264
|
+
"include": "#type-declarations"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"match": "\\w+",
|
|
268
|
+
"name": "variable.other.property.go"
|
|
269
|
+
}
|
|
270
|
+
]
|
|
271
|
+
},
|
|
272
|
+
"2": {
|
|
273
|
+
"patterns": [
|
|
274
|
+
{
|
|
275
|
+
"include": "#type-declarations"
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"match": "\\binvalid\\b\\s+\\btype\\b",
|
|
279
|
+
"name": "invalid.field.go"
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"match": "\\w+",
|
|
283
|
+
"name": "entity.name.type.go"
|
|
284
|
+
}
|
|
285
|
+
]
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
"comment": "struct field property and types when hovering with the mouse",
|
|
289
|
+
"match": "(?:(?<=^\\bfield\\b)\\s+([\\w\\*\\.]+)\\s+([\\s\\S]+))"
|
|
290
|
+
},
|
|
258
291
|
"function_declaration": {
|
|
259
292
|
"begin": "(?:^(\\bfunc\\b)(?:\\s*(\\([^\\)]+\\)\\s*)?(?:(\\w+)(?=\\(|\\[))?))",
|
|
260
293
|
"beginCaptures": {
|
|
@@ -2033,6 +2066,9 @@
|
|
|
2033
2066
|
},
|
|
2034
2067
|
{
|
|
2035
2068
|
"include": "#group-variables"
|
|
2069
|
+
},
|
|
2070
|
+
{
|
|
2071
|
+
"include": "#field_hover"
|
|
2036
2072
|
}
|
|
2037
2073
|
]
|
|
2038
2074
|
},
|
package/grammars/tex.json
CHANGED
|
@@ -102,7 +102,25 @@
|
|
|
102
102
|
"name": "punctuation.definition.function.tex"
|
|
103
103
|
}
|
|
104
104
|
},
|
|
105
|
-
"match": "(\\\\)
|
|
105
|
+
"match": "(\\\\)_*[\\p{Alphabetic}@]+(?:_[\\p{Alphabetic}@]+)*:[NncVvoxefTFpwD]*",
|
|
106
|
+
"name": "support.class.general.latex3.tex"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"captures": {
|
|
110
|
+
"1": {
|
|
111
|
+
"name": "punctuation.definition.function.tex"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"match": "(\\.)[\\p{Alphabetic}@]+(?:_[\\p{Alphabetic}@]+)*:[NncVvoxefTFpwD]*",
|
|
115
|
+
"name": "support.class.general.latex3.tex"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"captures": {
|
|
119
|
+
"1": {
|
|
120
|
+
"name": "punctuation.definition.function.tex"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"match": "(\\\\)(?:[,;]|(?:[\\p{Alphabetic}@]+))",
|
|
106
124
|
"name": "support.function.general.tex"
|
|
107
125
|
},
|
|
108
126
|
{
|
package/index.js
CHANGED
|
@@ -1044,18 +1044,18 @@ export const grammars = [
|
|
|
1044
1044
|
source: 'https://github.com/MarioSchwalbe/vscode-gnuplot/blob/c62c1a61c9b6b4658b43d76c397dc2ad43523b6a/syntaxes/gnuplot.tmLanguage',
|
|
1045
1045
|
},
|
|
1046
1046
|
{
|
|
1047
|
-
byteSize:
|
|
1047
|
+
byteSize: 46789,
|
|
1048
1048
|
categories: [
|
|
1049
1049
|
'general',
|
|
1050
1050
|
],
|
|
1051
1051
|
displayName: 'Go',
|
|
1052
|
-
lastUpdate: '2024-
|
|
1052
|
+
lastUpdate: '2024-05-31T13:09:59Z',
|
|
1053
1053
|
license: 'MIT',
|
|
1054
1054
|
licenseUrl: 'https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt',
|
|
1055
1055
|
name: 'go',
|
|
1056
1056
|
scopeName: 'source.go',
|
|
1057
|
-
sha: '
|
|
1058
|
-
source: 'https://github.com/microsoft/vscode/blob/
|
|
1057
|
+
sha: 'b8e3432a0b7dd11ffd0c832fad6a6c51e809013c',
|
|
1058
|
+
source: 'https://github.com/microsoft/vscode/blob/b8e3432a0b7dd11ffd0c832fad6a6c51e809013c/extensions/go/syntaxes/go.tmLanguage.json',
|
|
1059
1059
|
},
|
|
1060
1060
|
{
|
|
1061
1061
|
aliases: [
|
|
@@ -2841,7 +2841,7 @@ export const grammars = [
|
|
|
2841
2841
|
source: 'https://github.com/hashicorp/syntax/blob/c693badea4d460d1c05b8d2ab0c88bad143da3f1/syntaxes/terraform.tmGrammar.json',
|
|
2842
2842
|
},
|
|
2843
2843
|
{
|
|
2844
|
-
byteSize:
|
|
2844
|
+
byteSize: 8978,
|
|
2845
2845
|
categories: [
|
|
2846
2846
|
'markup',
|
|
2847
2847
|
],
|
|
@@ -2849,13 +2849,13 @@ export const grammars = [
|
|
|
2849
2849
|
embedded: [
|
|
2850
2850
|
'r',
|
|
2851
2851
|
],
|
|
2852
|
-
lastUpdate: '2024-
|
|
2852
|
+
lastUpdate: '2024-05-31T13:09:59Z',
|
|
2853
2853
|
license: 'MIT',
|
|
2854
2854
|
licenseUrl: 'https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt',
|
|
2855
2855
|
name: 'tex',
|
|
2856
2856
|
scopeName: 'text.tex',
|
|
2857
|
-
sha: '
|
|
2858
|
-
source: 'https://github.com/microsoft/vscode/blob/
|
|
2857
|
+
sha: 'b8e3432a0b7dd11ffd0c832fad6a6c51e809013c',
|
|
2858
|
+
source: 'https://github.com/microsoft/vscode/blob/b8e3432a0b7dd11ffd0c832fad6a6c51e809013c/extensions/latex/syntaxes/TeX.tmLanguage.json',
|
|
2859
2859
|
},
|
|
2860
2860
|
{
|
|
2861
2861
|
byteSize: 6411,
|