tm-grammars 1.24.10 → 1.24.12

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
@@ -133,7 +133,7 @@ import { grammars } from 'tm-grammars'
133
133
  | `log` | | [emilast/vscode-logfile-highlighter](https://github.com/emilast/vscode-logfile-highlighter/blob/396c8552ff99d0e07142fdd940d75dae212dd28c/syntaxes/log.tmLanguage) | [MIT](https://raw.githubusercontent.com/emilast/vscode-logfile-highlighter/master/LICENSE) | | | 2.52 kB |
134
134
  | `logo` | | [textmate/logo.tmbundle](https://github.com/textmate/logo.tmbundle/blob/3205e987ed2a2aa11accdd55a7d094832441f89c/Syntaxes/Logo.tmLanguage) | | | | 2.95 kB |
135
135
  | `lua` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/5c213a1e84928c7a7d11ca5b282ca602d40c1352/extensions/lua/syntaxes/lua.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | `c` | 14.17 kB |
136
- | `luau` | | [JohnnyMorganz/Luau.tmLanguage](https://github.com/JohnnyMorganz/Luau.tmLanguage/blob/050f326bc904342c9344b6e1ece96b9143b57086/Luau.tmLanguage) | [NOASSERTION](https://raw.githubusercontent.com/JohnnyMorganz/Luau.tmLanguage/main/LICENSE.md) | | | 11.89 kB |
136
+ | `luau` | | [JohnnyMorganz/Luau.tmLanguage](https://github.com/JohnnyMorganz/Luau.tmLanguage/blob/b58a31c0c0f69d8ece5172c34fb7b3feafc1f437/Luau.tmLanguage) | [NOASSERTION](https://raw.githubusercontent.com/JohnnyMorganz/Luau.tmLanguage/main/LICENSE.md) | | | 12.99 kB |
137
137
  | `make` | `makefile` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/91db8ea85fee30ebb3c7a5e7939aa2a8d79811c5/extensions/make/syntaxes/make.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | | 8.41 kB |
138
138
  | `markdown` | `md` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/6d8ab9737d58fc5eaf07e2ae6553b38183a5de47/extensions/markdown-basics/syntaxes/markdown.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | `css` `html` `ini` `java` `lua` `make` `perl` `r` `ruby` `php` `sql` `vb` `xml` `xsl` `yaml` `bat` `clojure` `coffee` `c` `cpp` `diff` `docker` `git-commit` `git-rebase` `go` `groovy` `pug` `javascript` `json` `jsonc` `jsonl` `less` `objective-c` `swift` `scss` `raku` `powershell` `python` `julia` `regexp` `rust` `scala` `shellscript` `typescript` `tsx` `csharp` `fsharp` `dart` `handlebars` `log` `erlang` `elixir` `latex` `bibtex` `abap` `rst` `html-derivative` | 55.03 kB |
139
139
  | `marko` | | [marko-js/language-server](https://github.com/marko-js/language-server/blob/41346af504380f2b0ccf60939eef42b5b99fdf58/packages/vscode/syntaxes/marko.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/marko-js/language-server/main/LICENSE) | | `css` `less` `scss` `typescript` | 23.94 kB |
@@ -202,7 +202,7 @@ import { grammars } from 'tm-grammars'
202
202
  | `stata` | | [kylebarron/language-stata](https://github.com/kylebarron/language-stata/blob/dd98de502bc1bf2a205f3f023afb98c7aa5b42ee/grammars/stata.json) | [MIT](https://raw.githubusercontent.com/kylebarron/language-stata/master/LICENSE) | | `sql` | 54.40 kB |
203
203
  | `stylus` | `styl` | [d4rkr00t/language-stylus](https://github.com/d4rkr00t/language-stylus/blob/198a851f385aee857332f3ce5dd981ff67720ead/syntaxes/stylus.json) | [MIT](https://raw.githubusercontent.com/d4rkr00t/language-stylus/master/LICENSE) | [Open Collective: **stylus**](https://opencollective.com/stylus) | | 29.69 kB |
204
204
  | `svelte` | | [sveltejs/language-tools](https://github.com/sveltejs/language-tools/blob/d12a9ae276c9f4c6a62964bbdca074424cbab123/packages/svelte-vscode/syntaxes/svelte.tmLanguage.src.yaml) | [MIT](https://raw.githubusercontent.com/sveltejs/language-tools/master/LICENSE) | [Open Collective: **svelte**](https://opencollective.com/svelte) | `javascript` `typescript` `coffee` `stylus` `sass` `css` `scss` `less` `postcss` `pug` `markdown` | 16.81 kB |
205
- | `swift` | | [jtbandes/swift-tmlanguage](https://github.com/jtbandes/swift-tmlanguage/blob/469723a01e76c277172bbc6636697e70e6545e40/Swift.tmLanguage.yaml) | [MIT](https://raw.githubusercontent.com/jtbandes/swift-tmlanguage/main/LICENSE.md) | [GitHub Sponsors: **@jtbandes**](https://github.com/sponsors/jtbandes) [Ko-fi: **jtbandes**](https://ko-fi.com/jtbandes) | | 81.79 kB |
205
+ | `swift` | | [jtbandes/swift-tmlanguage](https://github.com/jtbandes/swift-tmlanguage/blob/45ac01d47c6d63402570c2c36bcfbadbd1c7bca6/Swift.tmLanguage.yaml) | [MIT](https://raw.githubusercontent.com/jtbandes/swift-tmlanguage/main/LICENSE.md) | [GitHub Sponsors: **@jtbandes**](https://github.com/sponsors/jtbandes) [Ko-fi: **jtbandes**](https://ko-fi.com/jtbandes) | | 81.70 kB |
206
206
  | `system-verilog` | | [mshr-h/vscode-verilog-hdl-support](https://github.com/mshr-h/vscode-verilog-hdl-support/blob/a63b28cd8f15d9ec4861b2f802e8bf6ce4f6d2f2/syntaxes/systemverilog.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/mshr-h/vscode-verilog-hdl-support/main/LICENSE) | [buymeacoffee.com](https://www.buymeacoffee.com/mshr.h) | | 24.20 kB |
207
207
  | `systemd` | | [hangxingliu/vscode-systemd](https://github.com/hangxingliu/vscode-systemd/blob/62ace1156b5afa0ec9932e3a55cfc00c0123c457/src/syntax/systemd.tmLanguage) | [MIT](https://raw.githubusercontent.com/hangxingliu/vscode-systemd/main/LICENSE) | | | 7.39 kB |
208
208
  | `talonscript` | `talon` | [mrob95/vscode-TalonScript](https://github.com/mrob95/vscode-TalonScript/blob/91f3a6faaf926c02582f36ee155f2c4a02b9cc48/syntaxes/talon.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/mirober/vscode-TalonScript/master/LICENSE) | | | 6.40 kB |
@@ -26,6 +26,9 @@
26
26
  {
27
27
  "include": "#for-loop"
28
28
  },
29
+ {
30
+ "include": "#type-function"
31
+ },
29
32
  {
30
33
  "include": "#type-alias-declaration"
31
34
  },
@@ -608,6 +611,80 @@
608
611
  }
609
612
  ]
610
613
  },
614
+ "type-function": {
615
+ "begin": "^\\b(?:(export)\\s+)?(type)\\s+(function)\\b",
616
+ "beginCaptures": {
617
+ "1": {
618
+ "name": "storage.modifier.visibility.luau"
619
+ },
620
+ "2": {
621
+ "name": "storage.type.luau"
622
+ },
623
+ "3": {
624
+ "name": "keyword.control.luau"
625
+ }
626
+ },
627
+ "end": "(?<=[-\\]\"')\\[{}])",
628
+ "name": "meta.function.luau",
629
+ "patterns": [
630
+ {
631
+ "include": "#comment"
632
+ },
633
+ {
634
+ "include": "#generics-declaration"
635
+ },
636
+ {
637
+ "begin": "(\\()",
638
+ "beginCaptures": {
639
+ "1": {
640
+ "name": "punctuation.definition.parameters.begin.luau"
641
+ }
642
+ },
643
+ "end": "(\\))",
644
+ "endCaptures": {
645
+ "1": {
646
+ "name": "punctuation.definition.parameters.end.luau"
647
+ }
648
+ },
649
+ "name": "meta.parameter.luau",
650
+ "patterns": [
651
+ {
652
+ "include": "#comment"
653
+ },
654
+ {
655
+ "match": "\\.\\.\\.",
656
+ "name": "variable.parameter.function.varargs.luau"
657
+ },
658
+ {
659
+ "match": "[A-Z_a-z][0-9A-Z_a-z]*",
660
+ "name": "variable.parameter.function.luau"
661
+ },
662
+ {
663
+ "match": ",",
664
+ "name": "punctuation.separator.arguments.luau"
665
+ },
666
+ {
667
+ "begin": ":",
668
+ "beginCaptures": {
669
+ "0": {
670
+ "name": "keyword.operator.type.luau"
671
+ }
672
+ },
673
+ "end": "(?=[),])",
674
+ "patterns": [
675
+ {
676
+ "include": "#type_literal"
677
+ }
678
+ ]
679
+ }
680
+ ]
681
+ },
682
+ {
683
+ "match": "\\b([A-Z_a-z][0-9A-Z_a-z]*)\\b",
684
+ "name": "entity.name.type.luau"
685
+ }
686
+ ]
687
+ },
611
688
  "type_annotation": {
612
689
  "begin": ":(?!\\b([A-Z_a-z][0-9A-Z_a-z]*)\\b(?=\\s*(?:[\"'({]|\\[\\[)))",
613
690
  "end": "(?<=\\))(?!\\s*->)|[;=]|$|(?=\\breturn\\b)|(?=\\bend\\b)",
@@ -659,7 +736,7 @@
659
736
  "name": "constant.language.boolean.true.luau"
660
737
  },
661
738
  {
662
- "match": "\\b(nil|string|number|boolean|thread|userdata|symbol|any)\\b",
739
+ "match": "\\b(nil|string|number|boolean|thread|userdata|symbol|vector|buffer|unknown|never|any)\\b",
663
740
  "name": "support.type.primitive.luau"
664
741
  },
665
742
  {
@@ -727,13 +804,16 @@
727
804
  {
728
805
  "captures": {
729
806
  "1": {
730
- "name": "variable.property.luau"
807
+ "name": "storage.modifier.access.luau"
731
808
  },
732
809
  "2": {
810
+ "name": "variable.property.luau"
811
+ },
812
+ "3": {
733
813
  "name": "keyword.operator.type.luau"
734
814
  }
735
815
  },
736
- "match": "\\b([A-Z_a-z][0-9A-Z_a-z]*)\\b(:)"
816
+ "match": "\\b(?:(read|write)\\s+)?([A-Z_a-z][0-9A-Z_a-z]*)\\b(:)"
737
817
  },
738
818
  {
739
819
  "include": "#type_literal"
@@ -960,12 +960,18 @@
960
960
  ]
961
961
  },
962
962
  "declarations-extension": {
963
- "begin": "\\b(extension)\\s+((?<q>`?)[_\\p{L}][_\\p{L}\\p{N}\\p{M}]*(\\k<q>))",
963
+ "begin": "\\b(extension)\\s+",
964
964
  "beginCaptures": {
965
965
  "1": {
966
966
  "name": "storage.type.$1.swift"
967
- },
968
- "2": {
967
+ }
968
+ },
969
+ "end": "(?<=})",
970
+ "name": "meta.definition.type.$1.swift",
971
+ "patterns": [
972
+ {
973
+ "begin": "\\G(?!\\s*[\\n:{])",
974
+ "end": "(?=\\s*[\\n:{])|(?!\\G)(?=\\s*where\\b)",
969
975
  "name": "entity.name.type.swift",
970
976
  "patterns": [
971
977
  {
@@ -973,16 +979,6 @@
973
979
  }
974
980
  ]
975
981
  },
976
- "3": {
977
- "name": "punctuation.definition.identifier.swift"
978
- },
979
- "4": {
980
- "name": "punctuation.definition.identifier.swift"
981
- }
982
- },
983
- "end": "(?<=})",
984
- "name": "meta.definition.type.$1.swift",
985
- "patterns": [
986
982
  {
987
983
  "include": "#comments"
988
984
  },
package/index.js CHANGED
@@ -2333,19 +2333,19 @@ export const grammars = [
2333
2333
  sourceApi: 'https://api.github.com/repos/microsoft/vscode/contents/extensions/lua/syntaxes/lua.tmLanguage.json?ref=5c213a1e84928c7a7d11ca5b282ca602d40c1352',
2334
2334
  },
2335
2335
  {
2336
- byteSize: 12179,
2336
+ byteSize: 13302,
2337
2337
  displayName: 'Luau',
2338
2338
  funding: [
2339
2339
  ],
2340
- hash: 'eelZmFocP1Xp2P1PWhe7E5P3pj4UYhzPjykeOvFrxAc',
2341
- lastUpdate: '2024-11-11T20:13:41Z',
2340
+ hash: 'VdpfN_3N-g3IdfhIGDtbGkPRUur2K0S8XUXh8_j1N74',
2341
+ lastUpdate: '2025-09-06T12:37:44Z',
2342
2342
  license: 'NOASSERTION',
2343
2343
  licenseUrl: 'https://raw.githubusercontent.com/JohnnyMorganz/Luau.tmLanguage/main/LICENSE.md',
2344
2344
  name: 'luau',
2345
2345
  scopeName: 'source.luau',
2346
- sha: '050f326bc904342c9344b6e1ece96b9143b57086',
2347
- source: 'https://github.com/JohnnyMorganz/Luau.tmLanguage/blob/050f326bc904342c9344b6e1ece96b9143b57086/Luau.tmLanguage',
2348
- sourceApi: 'https://api.github.com/repos/JohnnyMorganz/Luau.tmLanguage/contents/Luau.tmLanguage?ref=050f326bc904342c9344b6e1ece96b9143b57086',
2346
+ sha: 'b58a31c0c0f69d8ece5172c34fb7b3feafc1f437',
2347
+ source: 'https://github.com/JohnnyMorganz/Luau.tmLanguage/blob/b58a31c0c0f69d8ece5172c34fb7b3feafc1f437/Luau.tmLanguage',
2348
+ sourceApi: 'https://api.github.com/repos/JohnnyMorganz/Luau.tmLanguage/contents/Luau.tmLanguage?ref=b58a31c0c0f69d8ece5172c34fb7b3feafc1f437',
2349
2349
  },
2350
2350
  {
2351
2351
  aliases: [
@@ -3812,7 +3812,7 @@ export const grammars = [
3812
3812
  sourceApi: 'https://api.github.com/repos/sveltejs/language-tools/contents/packages/svelte-vscode/syntaxes/svelte.tmLanguage.src.yaml?ref=d12a9ae276c9f4c6a62964bbdca074424cbab123',
3813
3813
  },
3814
3814
  {
3815
- byteSize: 83748,
3815
+ byteSize: 83662,
3816
3816
  categories: [
3817
3817
  'general',
3818
3818
  ],
@@ -3829,15 +3829,15 @@ export const grammars = [
3829
3829
  url: 'https://ko-fi.com/jtbandes',
3830
3830
  },
3831
3831
  ],
3832
- hash: 'ZkvOi4wASb0nsGoyYXnGWx-7SfraT9GcbqsUM7VhgkY',
3833
- lastUpdate: '2025-09-01T20:11:29Z',
3832
+ hash: 'cueRN08SRiTPM69F-c1Yt-TWhGJASeljMZTb1D86Rsc',
3833
+ lastUpdate: '2025-09-14T21:20:27Z',
3834
3834
  license: 'MIT',
3835
3835
  licenseUrl: 'https://raw.githubusercontent.com/jtbandes/swift-tmlanguage/main/LICENSE.md',
3836
3836
  name: 'swift',
3837
3837
  scopeName: 'source.swift',
3838
- sha: '469723a01e76c277172bbc6636697e70e6545e40',
3839
- source: 'https://github.com/jtbandes/swift-tmlanguage/blob/469723a01e76c277172bbc6636697e70e6545e40/Swift.tmLanguage.yaml',
3840
- sourceApi: 'https://api.github.com/repos/jtbandes/swift-tmlanguage/contents/Swift.tmLanguage.yaml?ref=469723a01e76c277172bbc6636697e70e6545e40',
3838
+ sha: '45ac01d47c6d63402570c2c36bcfbadbd1c7bca6',
3839
+ source: 'https://github.com/jtbandes/swift-tmlanguage/blob/45ac01d47c6d63402570c2c36bcfbadbd1c7bca6/Swift.tmLanguage.yaml',
3840
+ sourceApi: 'https://api.github.com/repos/jtbandes/swift-tmlanguage/contents/Swift.tmLanguage.yaml?ref=45ac01d47c6d63402570c2c36bcfbadbd1c7bca6',
3841
3841
  },
3842
3842
  {
3843
3843
  byteSize: 24776,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tm-grammars",
3
3
  "type": "module",
4
- "version": "1.24.10",
4
+ "version": "1.24.12",
5
5
  "description": "Collecton of TextMate grammars in JSON",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",