tm-grammars 1.12.7 → 1.12.9

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
@@ -21,7 +21,7 @@ import { grammars } from 'tm-grammars'
21
21
  | Name | Alias | Source | License | Deps On | File Size |
22
22
  | ---- | ----- | ------ | ------- | ------- | --------- |
23
23
  | `abap` | | [pvl/abap.tmbundle](https://github.com/pvl/abap.tmbundle/blob/a9b2efff4f4afa469d984353384f09e4ebd24055/Syntaxes/ABAP.tmLanguage) | | | 16.82 kB |
24
- | `actionscript-3` | | [BowlerHatLLC/vscode-as3mxml](https://github.com/BowlerHatLLC/vscode-as3mxml/blob/cb683a4cb4b5cac1126be203d4f081d8bfda57f5/distribution/src/assembly/syntaxes/AS3.tmLanguage) | [Apache-2.0](https://raw.githubusercontent.com/BowlerHatLLC/vscode-as3mxml/main/LICENSE) | | 13.74 kB |
24
+ | `actionscript-3` | | [BowlerHatLLC/vscode-as3mxml](https://github.com/BowlerHatLLC/vscode-as3mxml/blob/77075cd9a439ecd87815cecb1f1c2bb1ff44a2e5/distribution/src/assembly/syntaxes/AS3.tmLanguage) | [Apache-2.0](https://raw.githubusercontent.com/BowlerHatLLC/vscode-as3mxml/main/LICENSE) | | 13.81 kB |
25
25
  | `ada` | | [AdaCore/ada_language_server](https://github.com/AdaCore/ada_language_server/blob/75c0d0c22b3f3dbf559946331c7aca6fc5b84065/integration/vscode/ada/advanced/ada.tmLanguage.json) | [GPL-3.0](https://raw.githubusercontent.com/AdaCore/ada_language_server/master/LICENSE) | | 45.72 kB |
26
26
  | `angular-html` | | [onivim/vscode-exthost](https://github.com/onivim/vscode-exthost/blob/cfc2a2212de9ea10943af58ebd1817a5ad196463/extensions/html/syntaxes/html-derivative.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/onivim/vscode-exthost/master/LICENSE.txt) | `html` `angular-expression` `angular-template` `angular-template-blocks` | 772.00 B |
27
27
  | `angular-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) | `angular-expression` `angular-inline-style` `angular-inline-template` `angular-template` `angular-template-blocks` | 177.11 kB |
@@ -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 |
@@ -885,6 +885,11 @@
885
885
  },
886
886
  "strings": {
887
887
  "patterns": [
888
+ {
889
+ "begin": "@\"",
890
+ "end": "\"",
891
+ "name": "string.quoted.verbatim.actionscript.3"
892
+ },
888
893
  {
889
894
  "begin": "\"",
890
895
  "end": "\"",
@@ -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",
package/index.js CHANGED
@@ -14,18 +14,18 @@ export const grammars = [
14
14
  source: 'https://github.com/pvl/abap.tmbundle/blob/a9b2efff4f4afa469d984353384f09e4ebd24055/Syntaxes/ABAP.tmLanguage',
15
15
  },
16
16
  {
17
- byteSize: 14070,
17
+ byteSize: 14144,
18
18
  categories: [
19
19
  'scripting',
20
20
  ],
21
21
  displayName: 'ActionScript',
22
- lastUpdate: '2022-10-05T17:33:28Z',
22
+ lastUpdate: '2024-06-05T14:26:29Z',
23
23
  license: 'Apache-2.0',
24
24
  licenseUrl: 'https://raw.githubusercontent.com/BowlerHatLLC/vscode-as3mxml/main/LICENSE',
25
25
  name: 'actionscript-3',
26
26
  scopeName: 'source.actionscript.3',
27
- sha: 'cb683a4cb4b5cac1126be203d4f081d8bfda57f5',
28
- source: 'https://github.com/BowlerHatLLC/vscode-as3mxml/blob/cb683a4cb4b5cac1126be203d4f081d8bfda57f5/distribution/src/assembly/syntaxes/AS3.tmLanguage',
27
+ sha: '77075cd9a439ecd87815cecb1f1c2bb1ff44a2e5',
28
+ source: 'https://github.com/BowlerHatLLC/vscode-as3mxml/blob/77075cd9a439ecd87815cecb1f1c2bb1ff44a2e5/distribution/src/assembly/syntaxes/AS3.tmLanguage',
29
29
  },
30
30
  {
31
31
  byteSize: 46822,
@@ -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: [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tm-grammars",
3
3
  "type": "module",
4
- "version": "1.12.7",
4
+ "version": "1.12.9",
5
5
  "description": "Collecton of TextMate grammars in JSON",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",