tm-grammars 1.13.11 → 1.13.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
@@ -137,7 +137,7 @@ import { grammars } from 'tm-grammars'
137
137
  | `mdx` | | [wooorm/markdown-tm-language](https://github.com/wooorm/markdown-tm-language/blob/3f11836d11ca5ed41431ecd53dca7710c2c823ce/source.mdx.tmLanguage) | [MIT](https://raw.githubusercontent.com/wooorm/markdown-tm-language/main/license) | `tsx` `toml` `yaml` `c` `clojure` `coffee` `cpp` `csharp` `css` `diff` `docker` `elixir` `elm` `erlang` `go` `graphql` `haskell` `html` `ini` `java` `javascript` `json` `julia` `kotlin` `less` `lua` `make` `markdown` `objective-c` `perl` `python` `r` `ruby` `rust` `scala` `scss` `shellscript` `shellsession` `sql` `xml` `swift` `typescript` | 129.74 kB |
138
138
  | `mermaid` | | [bpruitt-goddard/vscode-mermaid-syntax-highlight](https://github.com/bpruitt-goddard/vscode-mermaid-syntax-highlight/blob/8b62f487cb7a89afcd152febfbf47f5d4787657f/syntaxes/mermaid.tmLanguage.yaml) | [MIT](https://raw.githubusercontent.com/bpruitt-goddard/vscode-mermaid-syntax-highlight/master/LICENSE) | | 27.99 kB |
139
139
  | `mojo` | | [modularml/mojo-syntax](https://github.com/modularml/mojo-syntax/blob/46eccdaeda2b1587e9b82808cdb35670f359d16d/syntaxes/mojo.syntax.json) | [MIT](https://raw.githubusercontent.com/modularml/mojo-syntax/main/LICENSE) | | 72.91 kB |
140
- | `move` | | [damirka/move-syntax](https://github.com/damirka/move-syntax/blob/4a9b54dbbebf6156ae987d4b9710191dd5952a7d/syntaxes/move.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/damirka/move-syntax/main/LICENSE) | | 18.46 kB |
140
+ | `move` | | [damirka/move-syntax](https://github.com/damirka/move-syntax/blob/1b57eb84b85cb21835f83a50f988091afa926fdf/syntaxes/move.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/damirka/move-syntax/main/LICENSE) | | 18.98 kB |
141
141
  | `narrat` | `nar` | [liana-p/narrat-syntax-highlighting-vscode](https://github.com/liana-p/narrat-syntax-highlighting-vscode/blob/00d4b410338fc50ca0ce77a1f7e873c1fb66d376/syntaxes/narrat.tmLanguage.yaml) | [MIT](https://raw.githubusercontent.com/liana-p/narrat-syntax-highlighting-vscode/main/LICENSE) | | 3.41 kB |
142
142
  | `nextflow` | `nf` | [nextflow-io/vscode-language-nextflow](https://github.com/nextflow-io/vscode-language-nextflow/blob/7eeb9be8d01556b7c51c59307275c2f720f2ddf4/syntaxes/nextflow.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/nextflow-io/vscode-language-nextflow/master/LICENSE.md) | | 4.40 kB |
143
143
  | `nginx` | | [hangxingliu/vscode-nginx-conf-hint](https://github.com/hangxingliu/vscode-nginx-conf-hint/blob/49159c02fd09dce264ded7802c9499a0f09646f5/src/syntax/nginx.tmLanguage) | [GPL-3.0](https://raw.githubusercontent.com/hangxingliu/vscode-nginx-conf-hint/main/LICENSE) | `lua` | 34.14 kB |
@@ -395,6 +395,9 @@
395
395
  {
396
396
  "include": "#path_access"
397
397
  },
398
+ {
399
+ "include": "#match_expression"
400
+ },
398
401
  {
399
402
  "match": "\\$(?=[a-z])",
400
403
  "name": "keyword.operator.macro.dollar.move"
@@ -826,6 +829,47 @@
826
829
  "match": "(\\b|\\.)([a-z][A-Za-z0-9_]*)!",
827
830
  "name": "meta.macro.call"
828
831
  },
832
+ "match_expression": {
833
+ "begin": "\\b(match)\\b",
834
+ "beginCaptures": {
835
+ "1": {
836
+ "name": "keyword.control.match.move"
837
+ }
838
+ },
839
+ "comment": "enum pattern matching",
840
+ "end": "(?<=})",
841
+ "name": "meta.match.move",
842
+ "patterns": [
843
+ {
844
+ "include": "#comments"
845
+ },
846
+ {
847
+ "include": "#escaped_identifier"
848
+ },
849
+ {
850
+ "include": "#types"
851
+ },
852
+ {
853
+ "begin": "{",
854
+ "comment": "Block expression or definition",
855
+ "end": "}",
856
+ "name": "meta.match.block.move",
857
+ "patterns": [
858
+ {
859
+ "comment": "arrow operator",
860
+ "match": "\\b(=>)\\b",
861
+ "name": "operator.match.move"
862
+ },
863
+ {
864
+ "include": "#expr"
865
+ }
866
+ ]
867
+ },
868
+ {
869
+ "include": "#expr"
870
+ }
871
+ ]
872
+ },
829
873
  "method_call": {
830
874
  "captures": {
831
875
  "1": {
package/index.js CHANGED
@@ -1945,15 +1945,15 @@ export const grammars = [
1945
1945
  source: 'https://github.com/modularml/mojo-syntax/blob/46eccdaeda2b1587e9b82808cdb35670f359d16d/syntaxes/mojo.syntax.json',
1946
1946
  },
1947
1947
  {
1948
- byteSize: 18899,
1948
+ byteSize: 19432,
1949
1949
  displayName: 'Move',
1950
- lastUpdate: '2024-06-08T23:07:51Z',
1950
+ lastUpdate: '2024-07-16T20:33:13Z',
1951
1951
  license: 'MIT',
1952
1952
  licenseUrl: 'https://raw.githubusercontent.com/damirka/move-syntax/main/LICENSE',
1953
1953
  name: 'move',
1954
1954
  scopeName: 'source.move',
1955
- sha: '4a9b54dbbebf6156ae987d4b9710191dd5952a7d',
1956
- source: 'https://github.com/damirka/move-syntax/blob/4a9b54dbbebf6156ae987d4b9710191dd5952a7d/syntaxes/move.tmLanguage.json',
1955
+ sha: '1b57eb84b85cb21835f83a50f988091afa926fdf',
1956
+ source: 'https://github.com/damirka/move-syntax/blob/1b57eb84b85cb21835f83a50f988091afa926fdf/syntaxes/move.tmLanguage.json',
1957
1957
  },
1958
1958
  {
1959
1959
  aliases: [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tm-grammars",
3
3
  "type": "module",
4
- "version": "1.13.11",
4
+ "version": "1.13.12",
5
5
  "description": "Collecton of TextMate grammars in JSON",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",