tm-grammars 1.12.5 → 1.12.7
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 +3 -3
- package/grammars/go.json +48 -12
- package/grammars/pascal.json +1 -1
- package/grammars/tex.json +19 -1
- package/index.js +12 -12
- 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 |
|
|
@@ -144,7 +144,7 @@ import { grammars } from 'tm-grammars'
|
|
|
144
144
|
| `objective-c` | `objc` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/bd1abe08c38bb5deccf65610f8f3c03d2338d20d/extensions/objective-c/syntaxes/objective-c.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 103.61 kB |
|
|
145
145
|
| `objective-cpp` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/bd1abe08c38bb5deccf65610f8f3c03d2338d20d/extensions/objective-c/syntaxes/objective-c++.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 168.52 kB |
|
|
146
146
|
| `ocaml` | | [reasonml-editor/vscode-reasonml](https://github.com/reasonml-editor/vscode-reasonml/blob/14af625ec50ed9968b957b4d6336c5338d81af45/syntaxes/ocaml.json) | [Apache-2.0](https://raw.githubusercontent.com/reasonml-editor/vscode-reasonml/master/LICENSE) | | 61.86 kB |
|
|
147
|
-
| `pascal` | | [alefragnani/vscode-language-pascal](https://github.com/alefragnani/vscode-language-pascal/blob/
|
|
147
|
+
| `pascal` | | [alefragnani/vscode-language-pascal](https://github.com/alefragnani/vscode-language-pascal/blob/61eeb938406a9ea13cee804b054d83457a5aa104/syntaxes/pascal.tmLanguage) | [MIT](https://raw.githubusercontent.com/alefragnani/vscode-language-pascal/master/LICENSE.md) | | 3.91 kB |
|
|
148
148
|
| `perl` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/e637ff1bf7f481134849625e982ec80df9b35bc8/extensions/perl/syntaxes/perl.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `html` `xml` `css` `javascript` `sql` | 41.97 kB |
|
|
149
149
|
| `php` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/06401b39b18c5e7d1c021a619fa387d654033606/extensions/php/syntaxes/php.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `html` `xml` `sql` `javascript` `json` `css` | 105.49 kB |
|
|
150
150
|
| `plsql` | | [zabel-xyz/plsql-language](https://github.com/zabel-xyz/plsql-language/blob/256a6b8f04f2bdc5e60ce921646a5068957078d7/syntaxes/plsql.tmLanguage) | [MIT](https://raw.githubusercontent.com/zabel-xyz/plsql-language/master/LICENSE) | | 7.99 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/pascal.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"name": "pascal",
|
|
15
15
|
"patterns": [
|
|
16
16
|
{
|
|
17
|
-
"match": "\\b(?i:(absolute|abstract|add|all|and_then|array|as|asc|asm|assembler|async|attribute|autoreleasepool|await|begin|bindable|block|by|case|cdecl|class|concat|const|constref|copy|cppdecl|contains|default|delegate|deprecated|desc|distinct|div|each|else|empty|end|ensure|enum|equals|event|except|export|exports|extension|external|far|file|finalization|finalizer|finally|flags|forward|from|future|generic|goto|group|has|helper|if|implements|implies|import|in|index|inherited|initialization|inline|interrupt|into|invariants|is|iterator|label|library|join|lazy|lifetimestrategy|locked|locking|loop|mapped|matching|method|mod|module|name|namespace|near|nested|new|nostackframe|not|notify|nullable|object|of|old|oldfpccall|on|only|operator|optional|or_else|order|otherwise|out|override|package|packed|parallel|params|partial|pascal|pinned|platform|pow|private|program|protected|public|published|interface|implementation|qualified|queryable|raises|read|readonly|record|reference|register|remove|resident|require|requires|resourcestring|restricted|result|reverse|safecall|sealed|segment|select|selector|sequence|set|shl|shr|skip|specialize|soft|static|stored|stdcall|step|strict|strong|take|then|threadvar|to|try|tuple|type|unconstrained|unit|unmanaged|unretained|unsafe|uses|using|var|view|virtual|volatile|weak|dynamic|overload|reintroduce|where|with|write|xor|yield))\\b",
|
|
17
|
+
"match": "\\b(?i:(absolute|abstract|add|all|and_then|array|as|asc|asm|assembler|async|attribute|autoreleasepool|await|begin|bindable|block|by|case|cdecl|class|concat|const|constref|copy|cppdecl|contains|default|delegate|deprecated|desc|distinct|div|each|else|empty|end|ensure|enum|equals|event|except|export|exports|extension|external|far|file|finalization|finalizer|finally|flags|forward|from|future|generic|goto|group|has|helper|if|implements|implies|import|in|index|inherited|initialization|inline|interrupt|into|invariants|is|iterator|label|library|join|lazy|lifetimestrategy|locked|locking|loop|mapped|matching|message|method|mod|module|name|namespace|near|nested|new|nostackframe|not|notify|nullable|object|of|old|oldfpccall|on|only|operator|optional|or_else|order|otherwise|out|override|package|packed|parallel|params|partial|pascal|pinned|platform|pow|private|program|protected|public|published|interface|implementation|qualified|queryable|raises|read|readonly|record|reference|register|remove|resident|require|requires|resourcestring|restricted|result|reverse|safecall|sealed|segment|select|selector|sequence|set|shl|shr|skip|specialize|soft|static|stored|stdcall|step|strict|strong|take|then|threadvar|to|try|tuple|type|unconstrained|unit|unmanaged|unretained|unsafe|uses|using|var|view|virtual|volatile|weak|dynamic|overload|reintroduce|where|with|write|xor|yield))\\b",
|
|
18
18
|
"name": "keyword.pascal"
|
|
19
19
|
},
|
|
20
20
|
{
|
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: [
|
|
@@ -2045,18 +2045,18 @@ export const grammars = [
|
|
|
2045
2045
|
source: 'https://github.com/reasonml-editor/vscode-reasonml/blob/14af625ec50ed9968b957b4d6336c5338d81af45/syntaxes/ocaml.json',
|
|
2046
2046
|
},
|
|
2047
2047
|
{
|
|
2048
|
-
byteSize:
|
|
2048
|
+
byteSize: 4004,
|
|
2049
2049
|
categories: [
|
|
2050
2050
|
'general',
|
|
2051
2051
|
],
|
|
2052
2052
|
displayName: 'Pascal',
|
|
2053
|
-
lastUpdate: '2024-
|
|
2053
|
+
lastUpdate: '2024-05-29T12:09:03Z',
|
|
2054
2054
|
license: 'MIT',
|
|
2055
2055
|
licenseUrl: 'https://raw.githubusercontent.com/alefragnani/vscode-language-pascal/master/LICENSE.md',
|
|
2056
2056
|
name: 'pascal',
|
|
2057
2057
|
scopeName: 'source.pascal',
|
|
2058
|
-
sha: '
|
|
2059
|
-
source: 'https://github.com/alefragnani/vscode-language-pascal/blob/
|
|
2058
|
+
sha: '61eeb938406a9ea13cee804b054d83457a5aa104',
|
|
2059
|
+
source: 'https://github.com/alefragnani/vscode-language-pascal/blob/61eeb938406a9ea13cee804b054d83457a5aa104/syntaxes/pascal.tmLanguage',
|
|
2060
2060
|
},
|
|
2061
2061
|
{
|
|
2062
2062
|
byteSize: 42982,
|
|
@@ -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,
|