tm-grammars 1.31.13 → 1.31.15

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
@@ -99,7 +99,7 @@ import { grammars } from 'tm-grammars'
99
99
  | `go` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/091ef378baaa141c8bc4bbe9775d4cb3bd655a80/extensions/go/syntaxes/go.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | | 43.47 kB |
100
100
  | `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` | 16.91 kB |
101
101
  | `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.17 kB |
102
- | `hack` | | [slackhq/vscode-hack](https://github.com/slackhq/vscode-hack/blob/b518393296112ec3189d97a6051e06c4dd5b46d6/syntaxes/hack.json) | [MIT](https://raw.githubusercontent.com/slackhq/vscode-hack/master/LICENSE.md) | | `html` `sql` | 76.68 kB |
102
+ | `hack` | | [slackhq/vscode-hack](https://github.com/slackhq/vscode-hack/blob/2076eaf73b8540401e29714d84c51ad5e053a61a/syntaxes/hack.json) | [MIT](https://raw.githubusercontent.com/slackhq/vscode-hack/master/LICENSE.md) | | `html` `sql` | 77.50 kB |
103
103
  | `haml` | | [karuna/haml-vscode](https://github.com/karuna/haml-vscode/blob/aa45415aefd691af0a501ea4f98e434490623e0d/syntaxes/haml.json) | [MIT](https://raw.githubusercontent.com/karuna/haml-vscode/master/LICENSE.md) | | `ruby` `javascript` `sass` `coffee` `markdown` `css` | 7.54 kB |
104
104
  | `handlebars` | `hbs` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/45db52ba6bd211cecd03897caee0531350071721/extensions/handlebars/syntaxes/Handlebars.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | `html` `css` `javascript` `yaml` | 11.40 kB |
105
105
  | `haskell` | `hs` | [octref/language-haskell](https://github.com/octref/language-haskell/blob/ae87982aac2bf5cf6334c067e49c5ec8fc08b871/syntaxes/haskell.json) | [BSD-3-Clause](https://raw.githubusercontent.com/octref/language-haskell/master/LICENSE) | [GitHub Sponsors: **@octref**](https://github.com/sponsors/octref) | | 38.52 kB |
@@ -127,7 +127,7 @@ import { grammars } from 'tm-grammars'
127
127
  | `jssm` | `fsl` | [StoneCypher/sublime-jssm](https://github.com/StoneCypher/sublime-jssm/blob/2be02a59d284229bbbfb3dc6c2bdcec9b2c263ef/jssm.tmLanguage) | [MIT](https://raw.githubusercontent.com/StoneCypher/sublime-jssm/master/LICENSE) | | | 2.08 kB |
128
128
  | `jsx` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/210541906e5a96ab39f9c753f921b1bd35f4138b/extensions/javascript/syntaxes/JavaScriptReact.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | | 158.51 kB |
129
129
  | `julia` | `jl` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/84f7ab5aa01c31d5352c7db89051e8c391fd9ae1/extensions/julia/syntaxes/julia.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | `cpp` `python` `javascript` `r` `sql` | 28.26 kB |
130
- | `just` | | [nefrob/vscode-just](https://github.com/nefrob/vscode-just/blob/43c8eab38e979c1b52f14ca033c0deb179a78def/syntaxes/just.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/nefrob/vscode-just/main/LICENSE) | | `shellscript` `javascript` `typescript` `perl` `python` `ruby` | 9.94 kB |
130
+ | `just` | | [nefrob/vscode-just](https://github.com/nefrob/vscode-just/blob/2253973135a5cdc34e44df876fecd30aff605150/syntaxes/just.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/nefrob/vscode-just/main/LICENSE) | | `shellscript` `javascript` `typescript` `perl` `python` `ruby` | 9.94 kB |
131
131
  | `kdl` | | [kdl-org/vscode-kdl](https://github.com/kdl-org/vscode-kdl/blob/b986286d526d3dba7f5121956a52ce300c3418f0/syntaxes/kdl.tmLanguage.json) | [Apache-2.0](https://raw.githubusercontent.com/kdl-org/vscode-kdl/main/LICENSE) | [GitHub Sponsors: **@zkat**](https://github.com/sponsors/zkat) | | 3.34 kB |
132
132
  | `kotlin` | `kt` `kts` | [fwcd/vscode-kotlin](https://github.com/fwcd/vscode-kotlin/blob/626e20d5c51a4379c4c0ee293aa89e58b5232aec/syntaxes/kotlin.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/fwcd/vscode-kotlin/main/LICENSE) | | | 8.19 kB |
133
133
  | `kusto` | `kql` | [rosshamish/kuskus](https://github.com/rosshamish/kuskus/blob/2a5d25aa9e1680b90e77b2477d710d11af8fcd88/kusto-syntax-highlighting/syntaxes/kusto.tmLanguage.json) | | | | 14.28 kB |
@@ -262,6 +262,15 @@
262
262
  },
263
263
  "end": "(?=[),])",
264
264
  "patterns": [
265
+ {
266
+ "begin": "\\(",
267
+ "end": "\\)",
268
+ "patterns": [
269
+ {
270
+ "include": "#language"
271
+ }
272
+ ]
273
+ },
265
274
  {
266
275
  "include": "#language"
267
276
  }
@@ -318,7 +327,7 @@
318
327
  "name": "punctuation.definition.type.php"
319
328
  }
320
329
  },
321
- "end": "(?=[;{])",
330
+ "end": "(?=[;{]|\\bwhere\\b)",
322
331
  "patterns": [
323
332
  {
324
333
  "include": "#comments"
@@ -554,7 +563,7 @@
554
563
  "include": "#comments"
555
564
  },
556
565
  {
557
- "begin": "(?=^\\s*<<)",
566
+ "begin": "(?=^\\s*<<[^<])",
558
567
  "end": "(?<=>>)",
559
568
  "patterns": [
560
569
  {
@@ -929,6 +938,44 @@
929
938
  "match": "\\b(catch|try|throw|exception|finally)\\b",
930
939
  "name": "keyword.control.exception.php"
931
940
  },
941
+ {
942
+ "begin": "(?i)\\b(const)\\s+(?=[\\\\_a-z])",
943
+ "beginCaptures": {
944
+ "1": {
945
+ "name": "storage.modifier.php"
946
+ }
947
+ },
948
+ "end": "(;)",
949
+ "endCaptures": {
950
+ "1": {
951
+ "name": "punctuation.terminator.expression.php"
952
+ }
953
+ },
954
+ "name": "meta.const.php",
955
+ "patterns": [
956
+ {
957
+ "include": "#comments"
958
+ },
959
+ {
960
+ "captures": {
961
+ "1": {
962
+ "name": "constant.other.php"
963
+ }
964
+ },
965
+ "match": "(?i)([_a-z][0-9_a-z]*)\\s*(?==(?!=))"
966
+ },
967
+ {
968
+ "include": "#type-annotation"
969
+ },
970
+ {
971
+ "match": "=",
972
+ "name": "keyword.operator.assignment.php"
973
+ },
974
+ {
975
+ "include": "#language"
976
+ }
977
+ ]
978
+ },
932
979
  {
933
980
  "begin": "(?i)\\s*(?:(public|internal)\\s+)?(function)\\s*(?=\\()",
934
981
  "beginCaptures": {
@@ -1054,6 +1101,9 @@
1054
1101
  "patterns": [
1055
1102
  {
1056
1103
  "include": "#function-return-type"
1104
+ },
1105
+ {
1106
+ "include": "#where-clause"
1057
1107
  }
1058
1108
  ]
1059
1109
  }
@@ -2181,10 +2231,6 @@
2181
2231
  "type-annotation": {
2182
2232
  "name": "support.type.php",
2183
2233
  "patterns": [
2184
- {
2185
- "match": "\\b(?:bool|int|float|string|resource|mixed|arraykey|nonnull|dict|vec|keyset)\\b",
2186
- "name": "support.type.php"
2187
- },
2188
2234
  {
2189
2235
  "begin": "([A-Z_a-z][0-9A-Z_a-z]*)<",
2190
2236
  "beginCaptures": {
@@ -2199,6 +2245,10 @@
2199
2245
  }
2200
2246
  ]
2201
2247
  },
2248
+ {
2249
+ "match": "\\b(?:bool|int|float|string|resource|mixed|arraykey|nonnull|dict|vec|keyset)\\b",
2250
+ "name": "support.type.php"
2251
+ },
2202
2252
  {
2203
2253
  "begin": "(shape\\()",
2204
2254
  "end": "((,|\\.\\.\\.)?\\s*\\))",
@@ -2374,6 +2424,34 @@
2374
2424
  }
2375
2425
  ]
2376
2426
  },
2427
+ "where-clause": {
2428
+ "patterns": [
2429
+ {
2430
+ "begin": "\\b(where)\\b",
2431
+ "beginCaptures": {
2432
+ "1": {
2433
+ "name": "storage.modifier.where.php"
2434
+ }
2435
+ },
2436
+ "end": "(?=[;{])",
2437
+ "patterns": [
2438
+ {
2439
+ "include": "#comments"
2440
+ },
2441
+ {
2442
+ "match": "\\b(as|super)\\b",
2443
+ "name": "storage.modifier.php"
2444
+ },
2445
+ {
2446
+ "include": "#type-annotation"
2447
+ },
2448
+ {
2449
+ "include": "#class-name"
2450
+ }
2451
+ ]
2452
+ }
2453
+ ]
2454
+ },
2377
2455
  "xhp": {
2378
2456
  "patterns": [
2379
2457
  {
package/index.js CHANGED
@@ -1627,7 +1627,7 @@ export const grammars = [
1627
1627
  sourceApi: 'https://api.github.com/repos/microsoft/vscode/contents/extensions/groovy/syntaxes/groovy.tmLanguage.json?ref=8fdf170a0850c1cc027382f31650aaf300d3ae2a',
1628
1628
  },
1629
1629
  {
1630
- byteSize: 78521,
1630
+ byteSize: 79363,
1631
1631
  categories: [
1632
1632
  'general',
1633
1633
  ],
@@ -1638,15 +1638,15 @@ export const grammars = [
1638
1638
  ],
1639
1639
  funding: [
1640
1640
  ],
1641
- hash: '4cow1qubTp3mJy1NyOmcIjB2tJ_R_KJ8CqV25-f_c1I',
1642
- lastUpdate: '2025-09-25T13:02:01Z',
1641
+ hash: '1aXjHvL5ol0fbEsYjoCHBTb-zMrBXTS0Y_Ws0c5kExg',
1642
+ lastUpdate: '2026-03-31T23:24:09Z',
1643
1643
  license: 'MIT',
1644
1644
  licenseUrl: 'https://raw.githubusercontent.com/slackhq/vscode-hack/master/LICENSE.md',
1645
1645
  name: 'hack',
1646
1646
  scopeName: 'source.hack',
1647
- sha: 'b518393296112ec3189d97a6051e06c4dd5b46d6',
1648
- source: 'https://github.com/slackhq/vscode-hack/blob/b518393296112ec3189d97a6051e06c4dd5b46d6/syntaxes/hack.json',
1649
- sourceApi: 'https://api.github.com/repos/slackhq/vscode-hack/contents/syntaxes/hack.json?ref=b518393296112ec3189d97a6051e06c4dd5b46d6',
1647
+ sha: '2076eaf73b8540401e29714d84c51ad5e053a61a',
1648
+ source: 'https://github.com/slackhq/vscode-hack/blob/2076eaf73b8540401e29714d84c51ad5e053a61a/syntaxes/hack.json',
1649
+ sourceApi: 'https://api.github.com/repos/slackhq/vscode-hack/contents/syntaxes/hack.json?ref=2076eaf73b8540401e29714d84c51ad5e053a61a',
1650
1650
  },
1651
1651
  {
1652
1652
  byteSize: 7719,
@@ -2228,15 +2228,15 @@ export const grammars = [
2228
2228
  ],
2229
2229
  funding: [
2230
2230
  ],
2231
- hash: 'xhn5UVF0Tztudg9eTCBM6MVwzvYuQGF1QUc7AGEs2YM',
2232
- lastUpdate: '2026-03-28T22:00:41Z',
2231
+ hash: '4wlmcUM-L997CuF9wcb5fPy0nkuc1exuXCp1shKJLek',
2232
+ lastUpdate: '2026-03-29T21:37:57Z',
2233
2233
  license: 'MIT',
2234
2234
  licenseUrl: 'https://raw.githubusercontent.com/nefrob/vscode-just/main/LICENSE',
2235
2235
  name: 'just',
2236
2236
  scopeName: 'source.just',
2237
- sha: '43c8eab38e979c1b52f14ca033c0deb179a78def',
2238
- source: 'https://github.com/nefrob/vscode-just/blob/43c8eab38e979c1b52f14ca033c0deb179a78def/syntaxes/just.tmLanguage.json',
2239
- sourceApi: 'https://api.github.com/repos/nefrob/vscode-just/contents/syntaxes/just.tmLanguage.json?ref=43c8eab38e979c1b52f14ca033c0deb179a78def',
2237
+ sha: '2253973135a5cdc34e44df876fecd30aff605150',
2238
+ source: 'https://github.com/nefrob/vscode-just/blob/2253973135a5cdc34e44df876fecd30aff605150/syntaxes/just.tmLanguage.json',
2239
+ sourceApi: 'https://api.github.com/repos/nefrob/vscode-just/contents/syntaxes/just.tmLanguage.json?ref=2253973135a5cdc34e44df876fecd30aff605150',
2240
2240
  },
2241
2241
  {
2242
2242
  byteSize: 3424,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tm-grammars",
3
3
  "type": "module",
4
- "version": "1.31.13",
4
+ "version": "1.31.15",
5
5
  "description": "Collecton of TextMate grammars in JSON",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",