tm-grammars 1.25.0 → 1.25.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 CHANGED
@@ -26,7 +26,7 @@ import { grammars } from 'tm-grammars'
26
26
  | `angular-html` | | [onivim/vscode-exthost](https://github.com/onivim/vscode-exthost/blob/cfc2a2212de9ea10943af58ebd1817a5ad196463/extensions/html/syntaxes/html-derivative.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/onivim/vscode-exthost/master/LICENSE.txt) | | `html` `angular-expression` `angular-let-declaration` `angular-template` `angular-template-blocks` | 701.00 B |
27
27
  | `angular-ts` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/210541906e5a96ab39f9c753f921b1bd35f4138b/extensions/typescript-basics/syntaxes/TypeScript.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | `angular-expression` `angular-inline-style` `angular-inline-template` `angular-let-declaration` `angular-template` `angular-template-blocks` | 160.04 kB |
28
28
  | `apache` | | [colinta/ApacheConf.tmLanguage](https://github.com/colinta/ApacheConf.tmLanguage/blob/1fdb47b6fe2cea20cfedbc522bff3ff1ed656c07/ApacheConf.tmLanguage) | [NOASSERTION](https://raw.githubusercontent.com/colinta/ApacheConf.tmLanguage/main/LICENSE) | | | 11.83 kB |
29
- | `apex` | | [forcedotcom/apex-tmLanguage](https://github.com/forcedotcom/apex-tmLanguage/blob/55c38da229689630908091adb87c04821eb7312a/grammars/apex.tmLanguage) | [NOASSERTION](https://raw.githubusercontent.com/forcedotcom/apex-tmLanguage/main/LICENSE) | | | 43.61 kB |
29
+ | `apex` | | [forcedotcom/apex-tmLanguage](https://github.com/forcedotcom/apex-tmLanguage/blob/da22c02d8cd25e455f58e453d26f9f6281269783/grammars/apex.tmLanguage) | [NOASSERTION](https://raw.githubusercontent.com/forcedotcom/apex-tmLanguage/main/LICENSE) | | | 43.40 kB |
30
30
  | `apl` | | [kimmolinna/vscode-apl-language](https://github.com/kimmolinna/vscode-apl-language/blob/13541242d9ffae225e89ebba23f9abaa4c60697e/syntaxes/apl.tmLanguage.json) | | | `html` `xml` `css` `javascript` `json` | 22.69 kB |
31
31
  | `applescript` | | [textmate/applescript.tmbundle](https://github.com/textmate/applescript.tmbundle/blob/4947cad7494eba084c21cfe04689b4efce96700f/Syntaxes/AppleScript.tmLanguage) | | | | 27.80 kB |
32
32
  | `ara` | | [ara-lang/highlighting](https://github.com/ara-lang/highlighting/blob/ed1dbedcf03d0b67207e41fe2e11218cc925dc0d/syntaxes/ara.json) | [Apache-2.0](https://raw.githubusercontent.com/ara-lang/highlighting/main/LICENSE-APACHE) | | | 5.91 kB |
@@ -224,7 +224,7 @@ import { grammars } from 'tm-grammars'
224
224
  | `typescript` | `ts` `cts` `mts` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/210541906e5a96ab39f9c753f921b1bd35f4138b/extensions/typescript-basics/syntaxes/TypeScript.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | | 160.03 kB |
225
225
  | `typespec` | `tsp` | [microsoft/typespec](https://github.com/microsoft/typespec/blob/b4b7705c61f186590c6a6d086a131cd71ee4c48c/grammars/typespec.json) | [MIT](https://raw.githubusercontent.com/microsoft/typespec/main/LICENSE) | | | 22.22 kB |
226
226
  | `typst` | `typ` | [nvarner/typst-lsp](https://github.com/nvarner/typst-lsp/blob/6972d4b9c2cbcb0551e203067f09ec84ca8f9df3/editors/vscode/typst.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/nvarner/typst-lsp/master/LICENSE-MIT.txt) | | | 7.83 kB |
227
- | `v` | | [vlang/vscode-vlang](https://github.com/vlang/vscode-vlang/blob/b1f529602bc6536ad8967373302e151e77179598/syntaxes/v.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/vlang/vscode-vlang/master/LICENSE) | | | 12.45 kB |
227
+ | `v` | | [vlang/vscode-vlang](https://github.com/vlang/vscode-vlang/blob/dd675d51adac26ca3154938de18eaaecbbcbffd9/syntaxes/v.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/vlang/vscode-vlang/master/LICENSE) | | | 12.43 kB |
228
228
  | `vala` | | [vala-lang/vala-vscode](https://github.com/vala-lang/vala-vscode/blob/8f825e95648326df2572d0522632251cdff4a43b/syntaxes/vala.YAML-tmLanguage) | [MIT](https://raw.githubusercontent.com/vala-lang/vala-vscode/master/LICENSE) | | | 3.12 kB |
229
229
  | `vb` | `cmd` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/35d97bc7e439fce0f50f42074041ab2d8571b20a/extensions/vb/syntaxes/asp-vb-net.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | | 5.70 kB |
230
230
  | `verilog` | | [mshr-h/vscode-verilog-hdl-support](https://github.com/mshr-h/vscode-verilog-hdl-support/blob/26cc4a3ec01b12aea5b8ffb7edeee3373eb71d77/syntaxes/verilog.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/mshr-h/vscode-verilog-hdl-support/main/LICENSE) | [buymeacoffee.com](https://www.buymeacoffee.com/mshr.h) | | 5.60 kB |
@@ -992,16 +992,26 @@
992
992
  ]
993
993
  },
994
994
  "implements-class": {
995
- "begin": "(implements)\\b\\s+([_[:alpha:]][_[:alnum:]]*)",
995
+ "begin": "(implements)\\b",
996
996
  "beginCaptures": {
997
997
  "1": {
998
998
  "name": "keyword.other.implements.apex"
999
- },
1000
- "2": {
1001
- "name": "entity.name.type.implements.apex"
1002
999
  }
1003
1000
  },
1004
- "end": "(?=\\{|extends)"
1001
+ "end": "(?=\\{|extends)",
1002
+ "patterns": [
1003
+ {
1004
+ "captures": {
1005
+ "1": {
1006
+ "name": "entity.name.type.implements.apex"
1007
+ },
1008
+ "2": {
1009
+ "name": "punctuation.separator.comma.apex"
1010
+ }
1011
+ },
1012
+ "match": "([_[:alpha:]][_[:alnum:]]*)\\b\\s*(,)?"
1013
+ }
1014
+ ]
1005
1015
  },
1006
1016
  "indexer-declaration": {
1007
1017
  "begin": "(?<return_type>(?<type_name>(?:ref\\s+)?(?:(?<identifier>@?[_[:alpha:]][_[:alnum:]]*)\\s*::\\s*)?(?<name_and_type_args>\\g<identifier>\\s*(?<type_args>\\s*<(?:[^<>]|\\g<type_args>)+>\\s*)?)(?:\\s*\\.\\s*\\g<name_and_type_args>)*(?:\\s*\\?\\s*)?(?:\\s*\\[(?:\\s*,\\s*)*]\\s*)*)\\s+)(?<interface_name>\\g<type_name>\\s*\\.\\s*)?(?<indexer_name>this)\\s*(?=\\[)",
@@ -2365,7 +2375,7 @@
2365
2375
  ]
2366
2376
  },
2367
2377
  "switch-statement": {
2368
- "begin": "(switch)\\b\\s+(on)\\b\\s+(?:(['().?_[:alnum:]]+)\\s*)?(\\{)",
2378
+ "begin": "(switch)\\b\\s+(on)\\b\\s+(.*)(\\{)",
2369
2379
  "beginCaptures": {
2370
2380
  "1": {
2371
2381
  "name": "keyword.control.switch.apex"
@@ -2940,19 +2950,20 @@
2940
2950
  ]
2941
2951
  },
2942
2952
  "when-string": {
2943
- "begin": "(when)\\b(\\s*)((')['*,._\\s[:alnum:]]+)",
2953
+ "begin": "(when)\\b\\s*('[^\\n']*')(,)?",
2944
2954
  "beginCaptures": {
2945
2955
  "1": {
2946
2956
  "name": "keyword.control.switch.when.apex"
2947
2957
  },
2948
2958
  "2": {
2949
- "name": "punctuation.whitespace.apex"
2959
+ "patterns": [
2960
+ {
2961
+ "include": "#string-literal"
2962
+ }
2963
+ ]
2950
2964
  },
2951
2965
  "3": {
2952
2966
  "patterns": [
2953
- {
2954
- "include": "#when-string-statement"
2955
- },
2956
2967
  {
2957
2968
  "include": "#punctuation-comma"
2958
2969
  }
@@ -2969,25 +2980,6 @@
2969
2980
  }
2970
2981
  ]
2971
2982
  },
2972
- "when-string-statement": {
2973
- "patterns": [
2974
- {
2975
- "begin": "'",
2976
- "beginCaptures": {
2977
- "0": {
2978
- "name": "punctuation.definition.string.begin.apex"
2979
- }
2980
- },
2981
- "end": "'",
2982
- "endCaptures": {
2983
- "0": {
2984
- "name": "punctuation.definition.string.end.apex"
2985
- }
2986
- },
2987
- "name": "string.quoted.single.apex"
2988
- }
2989
- ]
2990
- },
2991
2983
  "where-clause": {
2992
2984
  "captures": {
2993
2985
  "1": {
package/grammars/v.json CHANGED
@@ -3,9 +3,7 @@
3
3
  "fileTypes": [
4
4
  ".v",
5
5
  ".vh",
6
- ".vsh",
7
- ".vv",
8
- "v.mod"
6
+ ".vsh"
9
7
  ],
10
8
  "name": "v",
11
9
  "patterns": [
package/index.js CHANGED
@@ -122,19 +122,19 @@ export const grammars = [
122
122
  sourceApi: 'https://api.github.com/repos/colinta/ApacheConf.tmLanguage/contents/ApacheConf.tmLanguage?ref=1fdb47b6fe2cea20cfedbc522bff3ff1ed656c07',
123
123
  },
124
124
  {
125
- byteSize: 44656,
125
+ byteSize: 44441,
126
126
  displayName: 'Apex',
127
127
  funding: [
128
128
  ],
129
- hash: 'sntncG6da5fKwL0nKGu1R4B9g5820bT29fgFrgNfGKs',
130
- lastUpdate: '2025-05-27T18:18:24Z',
129
+ hash: 'M0qEKFTpQDhyUENabySwFERcKfgtlqB_B7-vokG6HqI',
130
+ lastUpdate: '2025-10-27T11:53:34Z',
131
131
  license: 'NOASSERTION',
132
132
  licenseUrl: 'https://raw.githubusercontent.com/forcedotcom/apex-tmLanguage/main/LICENSE',
133
133
  name: 'apex',
134
134
  scopeName: 'source.apex',
135
- sha: '55c38da229689630908091adb87c04821eb7312a',
136
- source: 'https://github.com/forcedotcom/apex-tmLanguage/blob/55c38da229689630908091adb87c04821eb7312a/grammars/apex.tmLanguage',
137
- sourceApi: 'https://api.github.com/repos/forcedotcom/apex-tmLanguage/contents/grammars/apex.tmLanguage?ref=55c38da229689630908091adb87c04821eb7312a',
135
+ sha: 'da22c02d8cd25e455f58e453d26f9f6281269783',
136
+ source: 'https://github.com/forcedotcom/apex-tmLanguage/blob/da22c02d8cd25e455f58e453d26f9f6281269783/grammars/apex.tmLanguage',
137
+ sourceApi: 'https://api.github.com/repos/forcedotcom/apex-tmLanguage/contents/grammars/apex.tmLanguage?ref=da22c02d8cd25e455f58e453d26f9f6281269783',
138
138
  },
139
139
  {
140
140
  byteSize: 23233,
@@ -4260,19 +4260,19 @@ export const grammars = [
4260
4260
  sourceApi: 'https://api.github.com/repos/nvarner/typst-lsp/contents/editors/vscode/typst.tmLanguage.json?ref=6972d4b9c2cbcb0551e203067f09ec84ca8f9df3',
4261
4261
  },
4262
4262
  {
4263
- byteSize: 12744,
4263
+ byteSize: 12730,
4264
4264
  displayName: 'V',
4265
4265
  funding: [
4266
4266
  ],
4267
- hash: 'rZsyeKnT17_9HRGMDyL9XboadtgzNTsfCp8LTIzyenM',
4268
- lastUpdate: '2023-01-09T21:56:12Z',
4267
+ hash: 'dZDSrfC42X6dLrbd_phVVq3-dk9FI0thmjM95xblEvA',
4268
+ lastUpdate: '2025-10-25T23:09:16Z',
4269
4269
  license: 'MIT',
4270
4270
  licenseUrl: 'https://raw.githubusercontent.com/vlang/vscode-vlang/master/LICENSE',
4271
4271
  name: 'v',
4272
4272
  scopeName: 'source.v',
4273
- sha: 'b1f529602bc6536ad8967373302e151e77179598',
4274
- source: 'https://github.com/vlang/vscode-vlang/blob/b1f529602bc6536ad8967373302e151e77179598/syntaxes/v.tmLanguage.json',
4275
- sourceApi: 'https://api.github.com/repos/vlang/vscode-vlang/contents/syntaxes/v.tmLanguage.json?ref=b1f529602bc6536ad8967373302e151e77179598',
4273
+ sha: 'dd675d51adac26ca3154938de18eaaecbbcbffd9',
4274
+ source: 'https://github.com/vlang/vscode-vlang/blob/dd675d51adac26ca3154938de18eaaecbbcbffd9/syntaxes/v.tmLanguage.json',
4275
+ sourceApi: 'https://api.github.com/repos/vlang/vscode-vlang/contents/syntaxes/v.tmLanguage.json?ref=dd675d51adac26ca3154938de18eaaecbbcbffd9',
4276
4276
  },
4277
4277
  {
4278
4278
  byteSize: 3194,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tm-grammars",
3
3
  "type": "module",
4
- "version": "1.25.0",
4
+ "version": "1.25.2",
5
5
  "description": "Collecton of TextMate grammars in JSON",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",