tm-grammars 1.3.0 → 1.3.1

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 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/b44d0a906d054d2d343adc3f58cbea11d97d7488/src/Razor/src/Microsoft.VisualStudio.RazorExtension/EmbeddedGrammars/aspnetcorerazor.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/dotnet/razor/main/LICENSE.txt) | `html` `csharp` | 23.38 kB |
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 |
@@ -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/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: 23936,
2063
+ byteSize: 24836,
2064
2064
  displayName: 'ASP.NET Razor',
2065
2065
  embedded: [
2066
2066
  'html',
2067
2067
  'csharp',
2068
2068
  ],
2069
- lastUpdate: '2023-10-25T23:16:16Z',
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: 'b44d0a906d054d2d343adc3f58cbea11d97d7488',
2075
- source: 'https://github.com/dotnet/razor/blob/b44d0a906d054d2d343adc3f58cbea11d97d7488/src/Razor/src/Microsoft.VisualStudio.RazorExtension/EmbeddedGrammars/aspnetcorerazor.tmLanguage.json',
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,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tm-grammars",
3
3
  "type": "module",
4
- "version": "1.3.0",
4
+ "version": "1.3.1",
5
5
  "packageManager": "pnpm@8.15.1",
6
6
  "description": "Collecton of TextMate grammars in JSON",
7
7
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",