tm-grammars 1.3.0 → 1.3.2
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/razor.json +78 -0
- package/grammars/scala.json +4 -0
- package/index.js +8 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -148,7 +148,7 @@ import { grammars } from 'tm-grammars'
|
|
|
148
148
|
| `python` | `py` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/cf4c9e469d521fa5f33353737e8157eb0789ad02/extensions/python/syntaxes/MagicPython.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 73.77 kB |
|
|
149
149
|
| `r` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/fa22e9ac36d5d37ef096679927179091ba7f6966/extensions/r/syntaxes/r.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 33.83 kB |
|
|
150
150
|
| `raku` | `perl6` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/8fdf170a0850c1cc027382f31650aaf300d3ae2a/extensions/perl/syntaxes/perl6.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 10.05 kB |
|
|
151
|
-
| `razor` | | [dotnet/razor](https://github.com/dotnet/razor/blob/
|
|
151
|
+
| `razor` | | [dotnet/razor](https://github.com/dotnet/razor/blob/f01e110af179981942987384d2b5d4e489eab014/src/Razor/src/Microsoft.VisualStudio.RazorExtension/EmbeddedGrammars/aspnetcorerazor.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/dotnet/razor/main/LICENSE.txt) | `html` `csharp` | 24.25 kB |
|
|
152
152
|
| `reg` | | [mihai-vlc/reg-vscode](https://github.com/mihai-vlc/reg-vscode/blob/896096fc6756329d82c71a913663a1c0ac678f74/syntaxes/reg.tmLanguage) | [MIT](https://raw.githubusercontent.com/mihai-vlc/reg-vscode/master/LICENSE) | | 2.20 kB |
|
|
153
153
|
| `rel` | | [relationalai-oss/rel_vscode](https://github.com/relationalai-oss/rel_vscode/blob/63dda4dee48c67b037357f47b562185484555ea9/syntaxes/rel.tmLanguage.json) | | | 3.18 kB |
|
|
154
154
|
| `riscv` | | [zhuanhao-wu/vscode-riscv-support](https://github.com/zhuanhao-wu/vscode-riscv-support/blob/2736b60e45ff2ef738d784055e136cf38d6290cd/syntaxes/riscv.tmLanguage) | [MIT](https://raw.githubusercontent.com/zhuanhao-wu/vscode-riscv-support/master/LICENSE) | | 7.04 kB |
|
|
@@ -157,7 +157,7 @@ import { grammars } from 'tm-grammars'
|
|
|
157
157
|
| `rust` | `rs` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/35d97bc7e439fce0f50f42074041ab2d8571b20a/extensions/rust/syntaxes/rust.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 16.77 kB |
|
|
158
158
|
| `sas` | | [rpardee/sas](https://github.com/rpardee/sas/blob/49f6e733c6c0b918a2a825ca2f63dba704f3e8c0/syntaxes/sas.tmLanguage) | [MIT](https://raw.githubusercontent.com/rpardee/sas/master/LICENSE) | `sql` | 9.31 kB |
|
|
159
159
|
| `sass` | | [TheRealSyler/vscode-sass-indented](https://github.com/TheRealSyler/vscode-sass-indented/blob/7b0bd6bbbb768c0cf21b2aa0899cb872ee42fd50/syntaxes/sass.tmLanguage.json) | [NOASSERTION](https://raw.githubusercontent.com/TheRealSyler/vscode-sass-indented/master/LICENSE) | | 8.84 kB |
|
|
160
|
-
| `scala` | | [scala/vscode-scala-syntax](https://github.com/scala/vscode-scala-syntax/blob/
|
|
160
|
+
| `scala` | | [scala/vscode-scala-syntax](https://github.com/scala/vscode-scala-syntax/blob/0ee961a552679291fdf41f4070c2766da6b7e0fb/syntaxes/Scala.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/scala/vscode-scala-syntax/main/LICENSE.md) | | 26.79 kB |
|
|
161
161
|
| `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 |
|
|
162
162
|
| `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 |
|
|
163
163
|
| `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 |
|
package/grammars/razor.json
CHANGED
|
@@ -314,6 +314,15 @@
|
|
|
314
314
|
},
|
|
315
315
|
{
|
|
316
316
|
"include": "#using-directive"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"include": "#rendermode-directive"
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"include": "#preservewhitespace-directive"
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"include": "#typeparam-directive"
|
|
317
326
|
}
|
|
318
327
|
]
|
|
319
328
|
},
|
|
@@ -1184,6 +1193,29 @@
|
|
|
1184
1193
|
"match": "(@)(page)\\s+([^$]+)?",
|
|
1185
1194
|
"name": "meta.directive"
|
|
1186
1195
|
},
|
|
1196
|
+
"preservewhitespace-directive": {
|
|
1197
|
+
"captures": {
|
|
1198
|
+
"1": {
|
|
1199
|
+
"patterns": [
|
|
1200
|
+
{
|
|
1201
|
+
"include": "#transition"
|
|
1202
|
+
}
|
|
1203
|
+
]
|
|
1204
|
+
},
|
|
1205
|
+
"2": {
|
|
1206
|
+
"name": "keyword.control.razor.directive.preservewhitespace"
|
|
1207
|
+
},
|
|
1208
|
+
"3": {
|
|
1209
|
+
"patterns": [
|
|
1210
|
+
{
|
|
1211
|
+
"include": "source.cs#boolean-literal"
|
|
1212
|
+
}
|
|
1213
|
+
]
|
|
1214
|
+
}
|
|
1215
|
+
},
|
|
1216
|
+
"match": "(@)(preservewhitespace)\\s+([^$]+)?",
|
|
1217
|
+
"name": "meta.directive"
|
|
1218
|
+
},
|
|
1187
1219
|
"razor-codeblock": {
|
|
1188
1220
|
"begin": "(@)(\\{)",
|
|
1189
1221
|
"beginCaptures": {
|
|
@@ -1327,6 +1359,29 @@
|
|
|
1327
1359
|
"match": "(@)(removeTagHelper)\\s+([^$]+)?",
|
|
1328
1360
|
"name": "meta.directive"
|
|
1329
1361
|
},
|
|
1362
|
+
"rendermode-directive": {
|
|
1363
|
+
"captures": {
|
|
1364
|
+
"1": {
|
|
1365
|
+
"patterns": [
|
|
1366
|
+
{
|
|
1367
|
+
"include": "#transition"
|
|
1368
|
+
}
|
|
1369
|
+
]
|
|
1370
|
+
},
|
|
1371
|
+
"2": {
|
|
1372
|
+
"name": "keyword.control.razor.directive.rendermode"
|
|
1373
|
+
},
|
|
1374
|
+
"3": {
|
|
1375
|
+
"patterns": [
|
|
1376
|
+
{
|
|
1377
|
+
"include": "source.cs#type"
|
|
1378
|
+
}
|
|
1379
|
+
]
|
|
1380
|
+
}
|
|
1381
|
+
},
|
|
1382
|
+
"match": "(@)(rendermode)\\s+([^$]+)?",
|
|
1383
|
+
"name": "meta.directive"
|
|
1384
|
+
},
|
|
1330
1385
|
"section-directive": {
|
|
1331
1386
|
"begin": "(@)(section)\\b\\s+([_[:alpha:]][_[:alnum:]]*)?",
|
|
1332
1387
|
"beginCaptures": {
|
|
@@ -1606,6 +1661,29 @@
|
|
|
1606
1661
|
}
|
|
1607
1662
|
]
|
|
1608
1663
|
},
|
|
1664
|
+
"typeparam-directive": {
|
|
1665
|
+
"captures": {
|
|
1666
|
+
"1": {
|
|
1667
|
+
"patterns": [
|
|
1668
|
+
{
|
|
1669
|
+
"include": "#transition"
|
|
1670
|
+
}
|
|
1671
|
+
]
|
|
1672
|
+
},
|
|
1673
|
+
"2": {
|
|
1674
|
+
"name": "keyword.control.razor.directive.typeparam"
|
|
1675
|
+
},
|
|
1676
|
+
"3": {
|
|
1677
|
+
"patterns": [
|
|
1678
|
+
{
|
|
1679
|
+
"include": "source.cs#type"
|
|
1680
|
+
}
|
|
1681
|
+
]
|
|
1682
|
+
}
|
|
1683
|
+
},
|
|
1684
|
+
"match": "(@)(typeparam)\\s+([^$]+)?",
|
|
1685
|
+
"name": "meta.directive"
|
|
1686
|
+
},
|
|
1609
1687
|
"unquoted-string-argument": {
|
|
1610
1688
|
"match": "[^$]+",
|
|
1611
1689
|
"name": "string.quoted.double.cs"
|
package/grammars/scala.json
CHANGED
|
@@ -284,6 +284,10 @@
|
|
|
284
284
|
"match": "(\\.[0-9][0-9_]*)([eE](\\+|-)?[0-9][0-9_]*)?[LlFfDd]?\\b",
|
|
285
285
|
"name": "constant.numeric.scala"
|
|
286
286
|
},
|
|
287
|
+
{
|
|
288
|
+
"match": "\\b0[bB][01]([01_]*[01])?[Ll]?\\b",
|
|
289
|
+
"name": "constant.numeric.scala"
|
|
290
|
+
},
|
|
287
291
|
{
|
|
288
292
|
"match": "\\b(this|super)\\b",
|
|
289
293
|
"name": "variable.language.scala"
|
package/index.js
CHANGED
|
@@ -2060,19 +2060,19 @@ export const grammars = [
|
|
|
2060
2060
|
source: 'https://github.com/microsoft/vscode/blob/8fdf170a0850c1cc027382f31650aaf300d3ae2a/extensions/perl/syntaxes/perl6.tmLanguage.json',
|
|
2061
2061
|
},
|
|
2062
2062
|
{
|
|
2063
|
-
byteSize:
|
|
2063
|
+
byteSize: 24836,
|
|
2064
2064
|
displayName: 'ASP.NET Razor',
|
|
2065
2065
|
embedded: [
|
|
2066
2066
|
'html',
|
|
2067
2067
|
'csharp',
|
|
2068
2068
|
],
|
|
2069
|
-
lastUpdate: '
|
|
2069
|
+
lastUpdate: '2024-02-16T00:01:48Z',
|
|
2070
2070
|
license: 'MIT',
|
|
2071
2071
|
licenseUrl: 'https://raw.githubusercontent.com/dotnet/razor/main/LICENSE.txt',
|
|
2072
2072
|
name: 'razor',
|
|
2073
2073
|
scopeName: 'text.aspnetcorerazor',
|
|
2074
|
-
sha: '
|
|
2075
|
-
source: 'https://github.com/dotnet/razor/blob/
|
|
2074
|
+
sha: 'f01e110af179981942987384d2b5d4e489eab014',
|
|
2075
|
+
source: 'https://github.com/dotnet/razor/blob/f01e110af179981942987384d2b5d4e489eab014/src/Razor/src/Microsoft.VisualStudio.RazorExtension/EmbeddedGrammars/aspnetcorerazor.tmLanguage.json',
|
|
2076
2076
|
},
|
|
2077
2077
|
{
|
|
2078
2078
|
byteSize: 2255,
|
|
@@ -2205,15 +2205,15 @@ export const grammars = [
|
|
|
2205
2205
|
source: 'https://github.com/TheRealSyler/vscode-sass-indented/blob/7b0bd6bbbb768c0cf21b2aa0899cb872ee42fd50/syntaxes/sass.tmLanguage.json',
|
|
2206
2206
|
},
|
|
2207
2207
|
{
|
|
2208
|
-
byteSize:
|
|
2208
|
+
byteSize: 27437,
|
|
2209
2209
|
displayName: 'Scala',
|
|
2210
|
-
lastUpdate: '2024-02-
|
|
2210
|
+
lastUpdate: '2024-02-16T10:50:59Z',
|
|
2211
2211
|
license: 'MIT',
|
|
2212
2212
|
licenseUrl: 'https://raw.githubusercontent.com/scala/vscode-scala-syntax/main/LICENSE.md',
|
|
2213
2213
|
name: 'scala',
|
|
2214
2214
|
scopeName: 'source.scala',
|
|
2215
|
-
sha: '
|
|
2216
|
-
source: 'https://github.com/scala/vscode-scala-syntax/blob/
|
|
2215
|
+
sha: '0ee961a552679291fdf41f4070c2766da6b7e0fb',
|
|
2216
|
+
source: 'https://github.com/scala/vscode-scala-syntax/blob/0ee961a552679291fdf41f4070c2766da6b7e0fb/syntaxes/Scala.tmLanguage.json',
|
|
2217
2217
|
},
|
|
2218
2218
|
{
|
|
2219
2219
|
byteSize: 8548,
|
package/package.json
CHANGED