tm-grammars 1.12.8 → 1.12.10

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
@@ -134,7 +134,7 @@ import { grammars } from 'tm-grammars'
134
134
  | `mdx` | | [wooorm/markdown-tm-language](https://github.com/wooorm/markdown-tm-language/blob/371d61df9ddc3850e12aabe61b602d02e259e8a4/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` | 120.76 kB |
135
135
  | `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) | | 24.78 kB |
136
136
  | `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 |
137
- | `move` | | [damirka/move-syntax](https://github.com/damirka/move-syntax/blob/7909b9096669930da1c9c08a2202e991c7187bfe/syntaxes/move.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/damirka/move-syntax/main/LICENSE) | | 17.41 kB |
137
+ | `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 |
138
138
  | `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 |
139
139
  | `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 |
140
140
  | `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 |
@@ -204,7 +204,7 @@ import { grammars } from 'tm-grammars'
204
204
  | `turtle` | | [stardog-union/stardog-vsc](https://github.com/stardog-union/stardog-vsc/blob/3f1364b08bdbf4b4d77f123682db7d2b708b2f6e/stardog-rdf-grammars/syntaxes/turtle.tmLanguage.json) | | | 3.50 kB |
205
205
  | `twig` | | [mblode/vscode-twig-language-2](https://github.com/mblode/vscode-twig-language-2/blob/82ae07ffe96656181ad8265c1fff008c8d1cdbba/src/syntaxes/twig.tmLanguage) | [MIT](https://raw.githubusercontent.com/mblode/vscode-twig-language-2/master/LICENSE.md) | `css` `javascript` `scss` `php` `python` `ruby` | 20.64 kB |
206
206
  | `typescript` | `ts` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/35d97bc7e439fce0f50f42074041ab2d8571b20a/extensions/typescript-basics/syntaxes/TypeScript.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 177.10 kB |
207
- | `typespec` | `tsp` | [microsoft/typespec](https://github.com/microsoft/typespec/blob/7ec17161b78117737660506b424b8a133e477cfc/grammars/typespec.json) | [MIT](https://raw.githubusercontent.com/microsoft/typespec/main/LICENSE) | | 26.16 kB |
207
+ | `typespec` | `tsp` | [microsoft/typespec](https://github.com/microsoft/typespec/blob/7912e8c9c7fff5c727608830d4ccb98ca86a2369/grammars/typespec.json) | [MIT](https://raw.githubusercontent.com/microsoft/typespec/main/LICENSE) | | 26.17 kB |
208
208
  | `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.98 kB |
209
209
  | `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.76 kB |
210
210
  | `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.14 kB |
@@ -15,13 +15,58 @@
15
15
  "include": "#script"
16
16
  },
17
17
  {
18
- "include": "#attributes"
18
+ "include": "#annotation"
19
19
  },
20
20
  {
21
21
  "begin": "\\b(while)\\b",
22
22
  "comment": "While experiment",
23
23
  "name": "keyword.control.while.whaaat.move",
24
24
  "while": "[a-z]"
25
+ },
26
+ {
27
+ "include": "#comments"
28
+ },
29
+ {
30
+ "include": "#annotation"
31
+ },
32
+ {
33
+ "include": "#entry"
34
+ },
35
+ {
36
+ "include": "#public-scope"
37
+ },
38
+ {
39
+ "include": "#public"
40
+ },
41
+ {
42
+ "include": "#native"
43
+ },
44
+ {
45
+ "include": "#import"
46
+ },
47
+ {
48
+ "include": "#friend"
49
+ },
50
+ {
51
+ "include": "#const"
52
+ },
53
+ {
54
+ "include": "#struct"
55
+ },
56
+ {
57
+ "include": "#has_ability"
58
+ },
59
+ {
60
+ "include": "#enum"
61
+ },
62
+ {
63
+ "include": "#macro"
64
+ },
65
+ {
66
+ "include": "#fun"
67
+ },
68
+ {
69
+ "include": "#spec"
25
70
  }
26
71
  ],
27
72
  "repository": {
@@ -70,6 +115,29 @@
70
115
  }
71
116
  ]
72
117
  },
118
+ "annotation": {
119
+ "begin": "#\\[",
120
+ "end": "\\]",
121
+ "name": "support.constant.annotation.move",
122
+ "patterns": [
123
+ {
124
+ "comment": "Annotation name",
125
+ "match": "\\b(\\w+)\\s*(?=\\=)",
126
+ "name": "meta.annotation.name.move"
127
+ },
128
+ {
129
+ "begin": "=",
130
+ "comment": "Annotation value",
131
+ "end": "(?=[,\\]])",
132
+ "name": "meta.annotation.value.move",
133
+ "patterns": [
134
+ {
135
+ "include": "#literals"
136
+ }
137
+ ]
138
+ }
139
+ ]
140
+ },
73
141
  "as": {
74
142
  "comment": "Keyword as (highlighted)",
75
143
  "match": "\\b(as)\\b",
@@ -80,10 +148,6 @@
80
148
  "match": "\\b(as)\\b",
81
149
  "name": "meta.import.as.move"
82
150
  },
83
- "attributes": {
84
- "match": "#\\[(?:[\\w0-9=,_\\(\\)\\s\"\\:=]+)\\]",
85
- "name": "support.constant.attribute.move"
86
- },
87
151
  "block": {
88
152
  "begin": "{",
89
153
  "comment": "Block expression or definition",
@@ -96,7 +160,6 @@
96
160
  ]
97
161
  },
98
162
  "block-comments": {
99
- "comment": "Supported since https://github.com/diem/diem/pull/3714",
100
163
  "patterns": [
101
164
  {
102
165
  "begin": "/\\*[\\*!](?![\\*/])",
@@ -781,7 +844,7 @@
781
844
  }
782
845
  },
783
846
  "comment": "Module definition",
784
- "end": "(?<=})",
847
+ "end": "(?<=[;}])",
785
848
  "name": "meta.module.move",
786
849
  "patterns": [
787
850
  {
@@ -790,7 +853,7 @@
790
853
  {
791
854
  "begin": "(?<=(module|spec))",
792
855
  "comment": "Module name",
793
- "end": "(?={)",
856
+ "end": "(?=[;{])",
794
857
  "patterns": [
795
858
  {
796
859
  "include": "#comments"
@@ -802,13 +865,29 @@
802
865
  "begin": "(?<=\\b(module|spec))",
803
866
  "comment": "Module namespace / address",
804
867
  "end": "(?=[(::){])",
805
- "name": "constant.other.move"
868
+ "name": "constant.other.move",
869
+ "patterns": [
870
+ {
871
+ "include": "#comments"
872
+ },
873
+ {
874
+ "include": "#escaped_identifier"
875
+ }
876
+ ]
806
877
  },
807
878
  {
808
879
  "begin": "(?<=::)",
809
880
  "comment": "Module name",
810
- "end": "(?=[\\s{])",
811
- "name": "entity.name.type.move"
881
+ "end": "(?=[\\s;{])",
882
+ "name": "entity.name.type.move",
883
+ "patterns": [
884
+ {
885
+ "include": "#comments"
886
+ },
887
+ {
888
+ "include": "#escaped_identifier"
889
+ }
890
+ ]
812
891
  }
813
892
  ]
814
893
  },
@@ -822,7 +901,7 @@
822
901
  "include": "#comments"
823
902
  },
824
903
  {
825
- "include": "#attributes"
904
+ "include": "#annotation"
826
905
  },
827
906
  {
828
907
  "include": "#entry"
@@ -880,6 +959,32 @@
880
959
  "match": "\\b(\\w+)::(\\w+)\\b",
881
960
  "name": "meta.module_access.move"
882
961
  },
962
+ "module_label": {
963
+ "begin": "^\\s*(module)\\b",
964
+ "comment": "Module label, inline module definition",
965
+ "end": ";\\s*$",
966
+ "name": "meta.module.label.move",
967
+ "patterns": [
968
+ {
969
+ "include": "#comments"
970
+ },
971
+ {
972
+ "include": "#escaped_identifier"
973
+ },
974
+ {
975
+ "begin": "(?<=\\b(module|spec))",
976
+ "comment": "Module namespace / address",
977
+ "end": "(?=[(::){])",
978
+ "name": "constant.other.move"
979
+ },
980
+ {
981
+ "begin": "(?<=::)",
982
+ "comment": "Module name",
983
+ "end": "(?=[\\s{])",
984
+ "name": "entity.name.type.move"
985
+ }
986
+ ]
987
+ },
883
988
  "move_copy": {
884
989
  "comment": "Keywords move and copy",
885
990
  "match": "\\b(move|copy)\\b",
@@ -237,7 +237,7 @@
237
237
  "name": "variable.name.tsp"
238
238
  }
239
239
  },
240
- "match": "(?x)((@)(?:param|template))\\s+(\\b[_$[:alpha:]][_$[:alnum:]]*\\b|`(?:[^`\\\\]|\\\\.)*`)\\b",
240
+ "match": "(?x)((@)(?:param|template|prop))\\s+(\\b[_$[:alpha:]][_$[:alnum:]]*\\b|`(?:[^`\\\\]|\\\\.)*`)\\b",
241
241
  "name": "comment.block.tsp"
242
242
  },
243
243
  "doc-comment-return-tag": {
package/index.js CHANGED
@@ -1899,15 +1899,15 @@ export const grammars = [
1899
1899
  source: 'https://github.com/modularml/mojo-syntax/blob/46eccdaeda2b1587e9b82808cdb35670f359d16d/syntaxes/mojo.syntax.json',
1900
1900
  },
1901
1901
  {
1902
- byteSize: 17828,
1902
+ byteSize: 18899,
1903
1903
  displayName: 'Move',
1904
- lastUpdate: '2024-05-24T08:48:59Z',
1904
+ lastUpdate: '2024-06-08T23:07:51Z',
1905
1905
  license: 'MIT',
1906
1906
  licenseUrl: 'https://raw.githubusercontent.com/damirka/move-syntax/main/LICENSE',
1907
1907
  name: 'move',
1908
1908
  scopeName: 'source.move',
1909
- sha: '7909b9096669930da1c9c08a2202e991c7187bfe',
1910
- source: 'https://github.com/damirka/move-syntax/blob/7909b9096669930da1c9c08a2202e991c7187bfe/syntaxes/move.tmLanguage.json',
1909
+ sha: '4a9b54dbbebf6156ae987d4b9710191dd5952a7d',
1910
+ source: 'https://github.com/damirka/move-syntax/blob/4a9b54dbbebf6156ae987d4b9710191dd5952a7d/syntaxes/move.tmLanguage.json',
1911
1911
  },
1912
1912
  {
1913
1913
  aliases: [
@@ -2948,15 +2948,15 @@ export const grammars = [
2948
2948
  aliases: [
2949
2949
  'tsp',
2950
2950
  ],
2951
- byteSize: 26790,
2951
+ byteSize: 26795,
2952
2952
  displayName: 'TypeSpec',
2953
- lastUpdate: '2024-05-08T20:06:28Z',
2953
+ lastUpdate: '2024-06-11T19:22:43Z',
2954
2954
  license: 'MIT',
2955
2955
  licenseUrl: 'https://raw.githubusercontent.com/microsoft/typespec/main/LICENSE',
2956
2956
  name: 'typespec',
2957
2957
  scopeName: 'source.tsp',
2958
- sha: '7ec17161b78117737660506b424b8a133e477cfc',
2959
- source: 'https://github.com/microsoft/typespec/blob/7ec17161b78117737660506b424b8a133e477cfc/grammars/typespec.json',
2958
+ sha: '7912e8c9c7fff5c727608830d4ccb98ca86a2369',
2959
+ source: 'https://github.com/microsoft/typespec/blob/7912e8c9c7fff5c727608830d4ccb98ca86a2369/grammars/typespec.json',
2960
2960
  },
2961
2961
  {
2962
2962
  aliases: [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tm-grammars",
3
3
  "type": "module",
4
- "version": "1.12.8",
4
+ "version": "1.12.10",
5
5
  "description": "Collecton of TextMate grammars in JSON",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",