tm-grammars 1.24.10 → 1.24.11

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 |
@@ -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"
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: [
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.11",
5
5
  "description": "Collecton of TextMate grammars in JSON",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",