tm-grammars 1.5.4 → 1.5.6

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
@@ -31,14 +31,14 @@ import { grammars } from 'tm-grammars'
31
31
  | `applescript` | | [textmate/applescript.tmbundle](https://github.com/textmate/applescript.tmbundle/blob/4947cad7494eba084c21cfe04689b4efce96700f/Syntaxes/AppleScript.tmLanguage) | | | 28.73 kB |
32
32
  | `ara` | | [ara-lang/highlighting](https://github.com/ara-lang/highlighting/blob/ed1dbedcf03d0b67207e41fe2e11218cc925dc0d/syntaxes/ara.json) | [Apache-2.0](https://raw.githubusercontent.com/ara-lang/highlighting/main/LICENSE-APACHE) | | 6.82 kB |
33
33
  | `asm` | | [13xforever/x86_64-assembly-vscode](https://github.com/13xforever/x86_64-assembly-vscode/blob/15c07b12741ac75f5bb6e7701dc7c0d742add8dd/syntaxes/language-x86_64-assembly.tmLanguage) | [MIT](https://raw.githubusercontent.com/13xforever/x86_64-assembly-vscode/master/LICENSE.txt) | | 38.59 kB |
34
- | `astro` | | [withastro/language-tools](https://github.com/withastro/language-tools/blob/cc0c86b73642c44f6df0fa5b1f5251bd224d5124/packages/vscode/syntaxes/astro.tmLanguage.src.yaml) | [MIT](https://raw.githubusercontent.com/withastro/language-tools/main/LICENSE) | `json` `javascript` `typescript` `stylus` `sass` `css` `scss` `less` `postcss` `tsx` | 22.92 kB |
34
+ | `astro` | | [withastro/language-tools](https://github.com/withastro/language-tools/blob/8e55c37cbcf134dedf0068781245da5a9d46d081/packages/vscode/syntaxes/astro.tmLanguage.src.yaml) | [MIT](https://raw.githubusercontent.com/withastro/language-tools/main/LICENSE) | `json` `javascript` `typescript` `stylus` `sass` `css` `scss` `less` `postcss` `tsx` | 23.04 kB |
35
35
  | `awk` | | [luggage66/vscode-awk](https://github.com/luggage66/vscode-awk/blob/eff8c0f160ae16592c8d9963fd77046137fd2612/syntaxes/awk.tmLanguage) | [MIT](https://raw.githubusercontent.com/luggage66/vscode-awk/master/LICENSE.txt) | | 5.18 kB |
36
36
  | `ballerina` | | [ballerina-platform/ballerina-grammar](https://github.com/ballerina-platform/ballerina-grammar/blob/42ddcc1c63c86bdd6ba712e86bf965f5063831d3/syntaxes/ballerina.tmLanguage) | [Apache-2.0](https://raw.githubusercontent.com/ballerina-platform/ballerina-grammar/master/LICENSE) | | 56.58 kB |
37
37
  | `bat` | `batch` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/df15c8e832a341633acd2e9bb26e1b275d09cfe0/extensions/bat/syntaxes/batchfile.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 12.38 kB |
38
38
  | `beancount` | | [Lencerf/vscode-beancount](https://github.com/Lencerf/vscode-beancount/blob/ffc762e047bb09ed5d16508b302aef16a6057139/syntaxes/beancount.tmLanguage) | [MIT](https://raw.githubusercontent.com/Lencerf/vscode-beancount/master/LICENSE) | | 10.19 kB |
39
39
  | `berry` | `be` | [berry-lang/berry](https://github.com/berry-lang/berry/blob/a0f5c044a3b593deaf87292ca6f04c2343e53dc8/tools/plugins/vscode/skiars.berry-1.1.0/syntaxes/berry.json) | [MIT](https://raw.githubusercontent.com/berry-lang/berry/master/LICENSE) | | 2.12 kB |
40
40
  | `bibtex` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/6021e0179514df6de02f91174ff7f9c5f6c87fd1/extensions/latex/syntaxes/Bibtex.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 4.68 kB |
41
- | `bicep` | | [Azure/bicep](https://github.com/Azure/bicep/blob/7d38437196bf9ad16c8401ffbb6406eea8457ed5/src/textmate/bicep.tmlanguage) | [MIT](https://raw.githubusercontent.com/Azure/bicep/main/LICENSE) | | 3.94 kB |
41
+ | `bicep` | | [Azure/bicep](https://github.com/Azure/bicep/blob/c87233025b216156dcbbe3b34930e41a5ecb6199/src/textmate/bicep.tmlanguage) | [MIT](https://raw.githubusercontent.com/Azure/bicep/main/LICENSE) | | 3.95 kB |
42
42
  | `blade` | | [spatie/shiki-php](https://github.com/spatie/shiki-php/blob/e985c3ab6b13252ad4521b7edb8ff91a9da3dd46/languages/blade.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/spatie/shiki-php/main/LICENSE.md) | `html` `xml` `sql` `javascript` `json` `css` | 101.01 kB |
43
43
  | `c` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/bd1abe08c38bb5deccf65610f8f3c03d2338d20d/extensions/cpp/syntaxes/c.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 69.70 kB |
44
44
  | `cadence` | `cdc` | [onflow/vscode-cadence](https://github.com/onflow/vscode-cadence/blob/e227d66c0346d2229da8c81a116abefdcda5f443/extension/language/syntaxes/cadence.tmGrammar.json) | [Apache-2.0](https://raw.githubusercontent.com/onflow/vscode-cadence/master/LICENSE) | | 10.34 kB |
@@ -87,7 +87,7 @@ import { grammars } from 'tm-grammars'
87
87
  | `haml` | | [karuna/haml-vscode](https://github.com/karuna/haml-vscode/blob/aa45415aefd691af0a501ea4f98e434490623e0d/syntaxes/haml.json) | [MIT](https://raw.githubusercontent.com/karuna/haml-vscode/master/LICENSE.md) | `ruby` `javascript` `sass` `coffee` `markdown` `css` | 7.68 kB |
88
88
  | `handlebars` | `hbs` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/45db52ba6bd211cecd03897caee0531350071721/extensions/handlebars/syntaxes/Handlebars.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `html` `css` `javascript` `yaml` | 11.48 kB |
89
89
  | `haskell` | `hs` | [octref/language-haskell](https://github.com/octref/language-haskell/blob/ae87982aac2bf5cf6334c067e49c5ec8fc08b871/syntaxes/haskell.json) | [BSD-3-Clause](https://raw.githubusercontent.com/octref/language-haskell/master/LICENSE) | | 41.23 kB |
90
- | `hcl` | | [hashicorp/syntax](https://github.com/hashicorp/syntax/blob/f47714928d08ebe59d5609e059d6d9b8a3176ba8/syntaxes/hcl.tmGrammar.json) | [MPL-2.0](https://raw.githubusercontent.com/hashicorp/syntax/main/LICENSE) | | 11.21 kB |
90
+ | `hcl` | | [hashicorp/syntax](https://github.com/hashicorp/syntax/blob/fc0270594ec0c55531f2388f331b6feaca187298/syntaxes/hcl.tmGrammar.json) | [MPL-2.0](https://raw.githubusercontent.com/hashicorp/syntax/main/LICENSE) | | 11.22 kB |
91
91
  | `hjson` | | [hjson/textmate-hjson](https://github.com/hjson/textmate-hjson/blob/196075169c9a9f9ab04c8e7423b67ea72c976237/Syntaxes/Hjson.tmLanguage) | [MIT](https://raw.githubusercontent.com/hjson/textmate-hjson/master/LICENSE) | | 12.20 kB |
92
92
  | `hlsl` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/efa12b2f49ec6ee84ed1e7bbd948808efec452f6/extensions/hlsl/syntaxes/hlsl.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 7.15 kB |
93
93
  | `html` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/45324363153075dab0482312ae24d8c068d81e4f/extensions/html/syntaxes/html.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `javascript` `css` | 56.74 kB |
@@ -123,7 +123,7 @@ import { grammars } from 'tm-grammars'
123
123
  | `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 |
124
124
  | `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) | | 19.88 kB |
125
125
  | `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 |
126
- | `move` | | [damirka/move-syntax](https://github.com/damirka/move-syntax/blob/ec2884fdaee236db42d8999e5f9cd2923e317f8b/syntaxes/move.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/damirka/move-syntax/main/LICENSE) | | 16.28 kB |
126
+ | `move` | | [damirka/move-syntax](https://github.com/damirka/move-syntax/blob/afdbb23b3360581c13e3ff60d514d0e4888b1aaa/syntaxes/move.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/damirka/move-syntax/main/LICENSE) | | 16.81 kB |
127
127
  | `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 |
128
128
  | `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 |
129
129
  | `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 |
@@ -177,7 +177,7 @@ import { grammars } from 'tm-grammars'
177
177
  | `system-verilog` | | [mshr-h/vscode-verilog-hdl-support](https://github.com/mshr-h/vscode-verilog-hdl-support/blob/dca87637e8789563ec5315794fdc5ef8ce498264/syntaxes/systemverilog.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/mshr-h/vscode-verilog-hdl-support/main/LICENSE) | | 18.47 kB |
178
178
  | `tasl` | | [underlay/vscode-tasl](https://github.com/underlay/vscode-tasl/blob/dde4b7c0b762c2e667584095362dd49ebfacece7/syntaxes/tasl.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/underlay/vscode-tasl/main/LICENSE) | | 3.21 kB |
179
179
  | `tcl` | | [sleutho/tcl](https://github.com/sleutho/tcl/blob/f18820ad14678bc033f0a35524820c90fe50f18b/syntaxes/tcl.tmLanguage) | | | 4.66 kB |
180
- | `terraform` | `tf` `tfvars` | [hashicorp/syntax](https://github.com/hashicorp/syntax/blob/9a20ff5032a67335f38e25d5a4c407c8ad1733f9/syntaxes/terraform.tmGrammar.json) | [MPL-2.0](https://raw.githubusercontent.com/hashicorp/syntax/main/LICENSE) | | 12.51 kB |
180
+ | `terraform` | `tf` `tfvars` | [hashicorp/syntax](https://github.com/hashicorp/syntax/blob/fc0270594ec0c55531f2388f331b6feaca187298/syntaxes/terraform.tmGrammar.json) | [MPL-2.0](https://raw.githubusercontent.com/hashicorp/syntax/main/LICENSE) | | 12.59 kB |
181
181
  | `tex` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/3c86ede5f554f6e196c832394e126b291a1de606/extensions/latex/syntaxes/TeX.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `r` | 7.85 kB |
182
182
  | `toml` | | [textmate/toml.tmbundle](https://github.com/textmate/toml.tmbundle/blob/e82b64c1e86396220786846201e9aa3f0a2d9ca2/Syntaxes/TOML.tmLanguage) | | | 6.26 kB |
183
183
  | `tsx` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/35d97bc7e439fce0f50f42074041ab2d8571b20a/extensions/typescript-basics/syntaxes/TypeScriptReact.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 171.16 kB |
@@ -201,7 +201,7 @@ import { grammars } from 'tm-grammars'
201
201
  | `xsl` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/8fdf170a0850c1cc027382f31650aaf300d3ae2a/extensions/xml/syntaxes/xsl.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `xml` | 1.20 kB |
202
202
  | `yaml` | `yml` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/772aaf777a2e6b50c5c2e53da1a0955d2cb73a4d/extensions/yaml/syntaxes/yaml.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 10.58 kB |
203
203
  | `zenscript` | | [CraftTweaker/ZenScript-tmLanguage](https://github.com/CraftTweaker/ZenScript-tmLanguage/blob/5a7bcb775a6fb37470e56f904e70d8b8b9e6b047/zenscript.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/CraftTweaker/ZenScript-tmLanguage/master/LICENSE) | | 4.08 kB |
204
- | `zig` | | [ziglang/vscode-zig](https://github.com/ziglang/vscode-zig/blob/ea09332218da68b168c04981330aeee3ea869fc6/syntaxes/zig.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/ziglang/vscode-zig/master/LICENSE) | | 4.68 kB |
204
+ | `zig` | | [ziglang/vscode-zig](https://github.com/ziglang/vscode-zig/blob/5a806c116fa1f940b68ba3064e77cbd3239985a3/syntaxes/zig.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/ziglang/vscode-zig/master/LICENSE) | | 4.69 kB |
205
205
 
206
206
  ## Injections
207
207
 
@@ -183,6 +183,19 @@
183
183
  }
184
184
  ],
185
185
  "repository": {
186
+ "attribute-literal": {
187
+ "begin": "(`)",
188
+ "end": "\\1",
189
+ "name": "string.template.astro",
190
+ "patterns": [
191
+ {
192
+ "include": "source.tsx#template-substitution-element"
193
+ },
194
+ {
195
+ "include": "source.tsx#string-character-escape"
196
+ }
197
+ ]
198
+ },
186
199
  "attributes": {
187
200
  "patterns": [
188
201
  {
@@ -220,6 +233,12 @@
220
233
  },
221
234
  "end": "(?<=[^\\s=])(?!\\s*=)|(?=/?>)",
222
235
  "patterns": [
236
+ {
237
+ "include": "#interpolation"
238
+ },
239
+ {
240
+ "include": "#attribute-literal"
241
+ },
223
242
  {
224
243
  "begin": "(?=[^\\s=<>`/]|/(?!>))",
225
244
  "end": "(?!\\G)",
@@ -421,17 +440,7 @@
421
440
  "name": "string.quoted.astro"
422
441
  },
423
442
  {
424
- "begin": "(`)",
425
- "end": "\\1",
426
- "name": "string.template.astro",
427
- "patterns": [
428
- {
429
- "include": "source.tsx#template-substitution-element"
430
- },
431
- {
432
- "include": "source.tsx#string-character-escape"
433
- }
434
- ]
443
+ "include": "#attribute-literal"
435
444
  }
436
445
  ]
437
446
  },
@@ -229,7 +229,7 @@
229
229
  },
230
230
  "string-verbatim": {
231
231
  "begin": "'''",
232
- "end": "'''",
232
+ "end": "'''(?!')",
233
233
  "name": "string.quoted.multi.bicep",
234
234
  "patterns": [
235
235
  ]
package/grammars/hcl.json CHANGED
@@ -545,17 +545,11 @@
545
545
  "name": "meta.mapping.key.hcl variable.other.readwrite.hcl"
546
546
  },
547
547
  "2": {
548
- "name": "keyword.operator.assignment.hcl",
549
- "patterns": [
550
- {
551
- "match": "\\=\\>",
552
- "name": "storage.type.function.hcl"
553
- }
554
- ]
548
+ "name": "keyword.operator.assignment.hcl"
555
549
  }
556
550
  },
557
551
  "comment": "Literal, named object key",
558
- "match": "\\b((?!null|false|true)[[:alpha:]][[:alnum:]_-]*)\\s*(\\=\\>?)\\s*"
552
+ "match": "\\b((?!null|false|true)[[:alpha:]][[:alnum:]_-]*)\\s*(\\=(?!=))\\s*"
559
553
  },
560
554
  {
561
555
  "captures": {
@@ -573,7 +567,7 @@
573
567
  }
574
568
  },
575
569
  "comment": "String object key",
576
- "match": "\\b((\").*(\"))\\s*(\\=)\\s*"
570
+ "match": "^\\s*((\").*(\"))\\s*(\\=)\\s*"
577
571
  },
578
572
  {
579
573
  "begin": "^\\s*\\(",
@@ -674,7 +668,12 @@
674
668
  "name": "keyword.operator.hcl"
675
669
  },
676
670
  {
677
- "match": "\\:"
671
+ "match": "\\:",
672
+ "name": "keyword.operator.hcl"
673
+ },
674
+ {
675
+ "match": "\\=\\>",
676
+ "name": "keyword.operator.hcl"
678
677
  }
679
678
  ]
680
679
  },
@@ -24,7 +24,7 @@
24
24
  "abilities": {
25
25
  "comment": "Ability",
26
26
  "match": "\\b(store|key|drop|copy)\\b",
27
- "name": "entity.name.type.ability.move"
27
+ "name": "support.type.ability.move"
28
28
  },
29
29
  "address": {
30
30
  "begin": "\\b(address)\\b",
@@ -106,6 +106,11 @@
106
106
  }
107
107
  ]
108
108
  },
109
+ "capitalized": {
110
+ "comment": "MyType - capitalized type name",
111
+ "match": "\\b([A-Z][a-zA-Z_0-9]*)\\b",
112
+ "name": "entity.name.type.use.move"
113
+ },
109
114
  "comments": {
110
115
  "name": "meta.comments.move",
111
116
  "patterns": [
@@ -306,6 +311,16 @@
306
311
  "match": "(?<=[$])[a-z][A-Z_0-9a-z]*",
307
312
  "name": "variable.other.meta.move"
308
313
  },
314
+ {
315
+ "comment": "ALL_CONST_CAPS",
316
+ "match": "\\b([A-Z][A-Z_]+)\\b",
317
+ "name": "constant.other.move"
318
+ },
319
+ {
320
+ "comment": "CustomType",
321
+ "match": "\\b([A-Z][a-zA-Z_0-9]*)\\b",
322
+ "name": "entity.name.type.move"
323
+ },
309
324
  {
310
325
  "include": "#paren"
311
326
  },
@@ -326,6 +341,9 @@
326
341
  {
327
342
  "include": "#types"
328
343
  },
344
+ {
345
+ "include": "#capitalized"
346
+ },
329
347
  {
330
348
  "include": "#expr_generic"
331
349
  }
@@ -435,6 +453,9 @@
435
453
  {
436
454
  "include": "#module_access"
437
455
  },
456
+ {
457
+ "include": "#capitalized"
458
+ },
438
459
  {
439
460
  "include": "#types"
440
461
  },
@@ -474,9 +495,18 @@
474
495
  {
475
496
  "include": "#self_access"
476
497
  },
498
+ {
499
+ "include": "#expr_generic"
500
+ },
501
+ {
502
+ "include": "#escaped_identifier"
503
+ },
477
504
  {
478
505
  "include": "#module_access"
479
506
  },
507
+ {
508
+ "include": "#capitalized"
509
+ },
480
510
  {
481
511
  "include": "#types"
482
512
  },
@@ -815,7 +845,7 @@
815
845
  },
816
846
  "packed_field": {
817
847
  "comment": "[ident]: ",
818
- "match": "[a-z][a-z0-9_]+\\s*:\\s[^:]",
848
+ "match": "[a-z][a-z0-9_]+\\s*:\\s*(?=\\s)",
819
849
  "name": "meta.struct.field.move"
820
850
  },
821
851
  "paren": {
@@ -1102,6 +1132,9 @@
1102
1132
  {
1103
1133
  "include": "#comments"
1104
1134
  },
1135
+ {
1136
+ "include": "#capitalized"
1137
+ },
1105
1138
  {
1106
1139
  "include": "#types"
1107
1140
  }
@@ -1138,9 +1171,18 @@
1138
1171
  {
1139
1172
  "include": "#self_access"
1140
1173
  },
1174
+ {
1175
+ "include": "#escaped_identifier"
1176
+ },
1141
1177
  {
1142
1178
  "include": "#module_access"
1143
1179
  },
1180
+ {
1181
+ "include": "#expr_generic"
1182
+ },
1183
+ {
1184
+ "include": "#capitalized"
1185
+ },
1144
1186
  {
1145
1187
  "include": "#types"
1146
1188
  }
@@ -1171,6 +1213,9 @@
1171
1213
  {
1172
1214
  "include": "#phantom"
1173
1215
  },
1216
+ {
1217
+ "include": "#capitalized"
1218
+ },
1174
1219
  {
1175
1220
  "include": "#module_access"
1176
1221
  },
@@ -1188,16 +1233,6 @@
1188
1233
  },
1189
1234
  {
1190
1235
  "include": "#vector"
1191
- },
1192
- {
1193
- "comment": "Capitalized type names",
1194
- "match": "\\b([A-Z][A-Za-z_]*)\\b",
1195
- "name": "entity.name.type"
1196
- },
1197
- {
1198
- "comment": "All-uppercase const literal",
1199
- "match": "\\b([A-Z_]+)\\b",
1200
- "name": "constant.other.move"
1201
1236
  }
1202
1237
  ]
1203
1238
  },
@@ -1216,7 +1251,9 @@
1216
1251
  "include": "#comments"
1217
1252
  },
1218
1253
  {
1219
- "include": "#as-import"
1254
+ "comment": "as keyword",
1255
+ "match": "\\b(as)\\b",
1256
+ "name": "keyword.control.as.move"
1220
1257
  },
1221
1258
  {
1222
1259
  "comment": "Self keyword",
@@ -1225,8 +1262,17 @@
1225
1262
  },
1226
1263
  {
1227
1264
  "comment": "Function name",
1228
- "match": "\\b([a-z][a-z_0-9]+)\\b",
1265
+ "match": "\\b(_______[a-z][a-z_0-9]+)\\b",
1229
1266
  "name": "entity.name.function.use.move"
1267
+ },
1268
+ {
1269
+ "include": "#types"
1270
+ },
1271
+ {
1272
+ "include": "#escaped_identifier"
1273
+ },
1274
+ {
1275
+ "include": "#capitalized"
1230
1276
  }
1231
1277
  ]
1232
1278
  },
@@ -690,7 +690,12 @@
690
690
  "name": "keyword.operator.hcl"
691
691
  },
692
692
  {
693
- "match": "\\:"
693
+ "match": "\\:",
694
+ "name": "keyword.operator.hcl"
695
+ },
696
+ {
697
+ "match": "\\=\\>",
698
+ "name": "keyword.operator.hcl"
694
699
  }
695
700
  ]
696
701
  },
package/grammars/zig.json CHANGED
@@ -164,7 +164,7 @@
164
164
  "name": "keyword.operator.c-pointer.zig"
165
165
  },
166
166
  {
167
- "match": "(\\b(and|or)\\b)|(==|!=)",
167
+ "match": "(\\b(and|or)\\b)|(==|!=|<=|>=|<|>)",
168
168
  "name": "keyword.operator.comparison.zig"
169
169
  },
170
170
  {
package/index.js CHANGED
@@ -152,7 +152,7 @@ export const grammars = [
152
152
  source: 'https://github.com/13xforever/x86_64-assembly-vscode/blob/15c07b12741ac75f5bb6e7701dc7c0d742add8dd/syntaxes/language-x86_64-assembly.tmLanguage',
153
153
  },
154
154
  {
155
- byteSize: 23473,
155
+ byteSize: 23588,
156
156
  categories: [
157
157
  'web',
158
158
  ],
@@ -169,13 +169,13 @@ export const grammars = [
169
169
  'postcss',
170
170
  'tsx',
171
171
  ],
172
- lastUpdate: '2024-03-14T11:45:35Z',
172
+ lastUpdate: '2024-03-23T17:37:42Z',
173
173
  license: 'MIT',
174
174
  licenseUrl: 'https://raw.githubusercontent.com/withastro/language-tools/main/LICENSE',
175
175
  name: 'astro',
176
176
  scopeName: 'source.astro',
177
- sha: 'cc0c86b73642c44f6df0fa5b1f5251bd224d5124',
178
- source: 'https://github.com/withastro/language-tools/blob/cc0c86b73642c44f6df0fa5b1f5251bd224d5124/packages/vscode/syntaxes/astro.tmLanguage.src.yaml',
177
+ sha: '8e55c37cbcf134dedf0068781245da5a9d46d081',
178
+ source: 'https://github.com/withastro/language-tools/blob/8e55c37cbcf134dedf0068781245da5a9d46d081/packages/vscode/syntaxes/astro.tmLanguage.src.yaml',
179
179
  },
180
180
  {
181
181
  byteSize: 5303,
@@ -256,15 +256,15 @@ export const grammars = [
256
256
  source: 'https://github.com/microsoft/vscode/blob/6021e0179514df6de02f91174ff7f9c5f6c87fd1/extensions/latex/syntaxes/Bibtex.tmLanguage.json',
257
257
  },
258
258
  {
259
- byteSize: 4036,
259
+ byteSize: 4041,
260
260
  displayName: 'Bicep',
261
- lastUpdate: '2023-10-27T12:18:09Z',
261
+ lastUpdate: '2024-03-21T13:37:33Z',
262
262
  license: 'MIT',
263
263
  licenseUrl: 'https://raw.githubusercontent.com/Azure/bicep/main/LICENSE',
264
264
  name: 'bicep',
265
265
  scopeName: 'source.bicep',
266
- sha: '7d38437196bf9ad16c8401ffbb6406eea8457ed5',
267
- source: 'https://github.com/Azure/bicep/blob/7d38437196bf9ad16c8401ffbb6406eea8457ed5/src/textmate/bicep.tmlanguage',
266
+ sha: 'c87233025b216156dcbbe3b34930e41a5ecb6199',
267
+ source: 'https://github.com/Azure/bicep/blob/c87233025b216156dcbbe3b34930e41a5ecb6199/src/textmate/bicep.tmlanguage',
268
268
  },
269
269
  {
270
270
  byteSize: 103434,
@@ -1013,15 +1013,15 @@ export const grammars = [
1013
1013
  source: 'https://github.com/octref/language-haskell/blob/ae87982aac2bf5cf6334c067e49c5ec8fc08b871/syntaxes/haskell.json',
1014
1014
  },
1015
1015
  {
1016
- byteSize: 11475,
1016
+ byteSize: 11490,
1017
1017
  displayName: 'HashiCorp HCL',
1018
- lastUpdate: '2024-03-12T08:31:49Z',
1018
+ lastUpdate: '2024-03-25T11:34:34Z',
1019
1019
  license: 'MPL-2.0',
1020
1020
  licenseUrl: 'https://raw.githubusercontent.com/hashicorp/syntax/main/LICENSE',
1021
1021
  name: 'hcl',
1022
1022
  scopeName: 'source.hcl',
1023
- sha: 'f47714928d08ebe59d5609e059d6d9b8a3176ba8',
1024
- source: 'https://github.com/hashicorp/syntax/blob/f47714928d08ebe59d5609e059d6d9b8a3176ba8/syntaxes/hcl.tmGrammar.json',
1023
+ sha: 'fc0270594ec0c55531f2388f331b6feaca187298',
1024
+ source: 'https://github.com/hashicorp/syntax/blob/fc0270594ec0c55531f2388f331b6feaca187298/syntaxes/hcl.tmGrammar.json',
1025
1025
  },
1026
1026
  {
1027
1027
  byteSize: 12496,
@@ -1689,15 +1689,15 @@ export const grammars = [
1689
1689
  source: 'https://github.com/modularml/mojo-syntax/blob/46eccdaeda2b1587e9b82808cdb35670f359d16d/syntaxes/mojo.syntax.json',
1690
1690
  },
1691
1691
  {
1692
- byteSize: 16667,
1692
+ byteSize: 17215,
1693
1693
  displayName: 'Move',
1694
- lastUpdate: '2024-03-13T20:37:02Z',
1694
+ lastUpdate: '2024-03-22T21:38:47Z',
1695
1695
  license: 'MIT',
1696
1696
  licenseUrl: 'https://raw.githubusercontent.com/damirka/move-syntax/main/LICENSE',
1697
1697
  name: 'move',
1698
1698
  scopeName: 'source.move',
1699
- sha: 'ec2884fdaee236db42d8999e5f9cd2923e317f8b',
1700
- source: 'https://github.com/damirka/move-syntax/blob/ec2884fdaee236db42d8999e5f9cd2923e317f8b/syntaxes/move.tmLanguage.json',
1699
+ sha: 'afdbb23b3360581c13e3ff60d514d0e4888b1aaa',
1700
+ source: 'https://github.com/damirka/move-syntax/blob/afdbb23b3360581c13e3ff60d514d0e4888b1aaa/syntaxes/move.tmLanguage.json',
1701
1701
  },
1702
1702
  {
1703
1703
  aliases: [
@@ -2496,15 +2496,15 @@ export const grammars = [
2496
2496
  'tf',
2497
2497
  'tfvars',
2498
2498
  ],
2499
- byteSize: 12812,
2499
+ byteSize: 12891,
2500
2500
  displayName: 'Terraform',
2501
- lastUpdate: '2024-03-12T08:41:50Z',
2501
+ lastUpdate: '2024-03-25T11:34:34Z',
2502
2502
  license: 'MPL-2.0',
2503
2503
  licenseUrl: 'https://raw.githubusercontent.com/hashicorp/syntax/main/LICENSE',
2504
2504
  name: 'terraform',
2505
2505
  scopeName: 'source.hcl.terraform',
2506
- sha: '9a20ff5032a67335f38e25d5a4c407c8ad1733f9',
2507
- source: 'https://github.com/hashicorp/syntax/blob/9a20ff5032a67335f38e25d5a4c407c8ad1733f9/syntaxes/terraform.tmGrammar.json',
2506
+ sha: 'fc0270594ec0c55531f2388f331b6feaca187298',
2507
+ source: 'https://github.com/hashicorp/syntax/blob/fc0270594ec0c55531f2388f331b6feaca187298/syntaxes/terraform.tmGrammar.json',
2508
2508
  },
2509
2509
  {
2510
2510
  byteSize: 8039,
@@ -2867,18 +2867,18 @@ export const grammars = [
2867
2867
  source: 'https://github.com/CraftTweaker/ZenScript-tmLanguage/blob/5a7bcb775a6fb37470e56f904e70d8b8b9e6b047/zenscript.tmLanguage.json',
2868
2868
  },
2869
2869
  {
2870
- byteSize: 4794,
2870
+ byteSize: 4804,
2871
2871
  categories: [
2872
2872
  'general',
2873
2873
  ],
2874
2874
  displayName: 'Zig',
2875
- lastUpdate: '2023-10-11T06:24:26Z',
2875
+ lastUpdate: '2024-03-24T10:39:45Z',
2876
2876
  license: 'MIT',
2877
2877
  licenseUrl: 'https://raw.githubusercontent.com/ziglang/vscode-zig/master/LICENSE',
2878
2878
  name: 'zig',
2879
2879
  scopeName: 'source.zig',
2880
- sha: 'ea09332218da68b168c04981330aeee3ea869fc6',
2881
- source: 'https://github.com/ziglang/vscode-zig/blob/ea09332218da68b168c04981330aeee3ea869fc6/syntaxes/zig.tmLanguage.json',
2880
+ sha: '5a806c116fa1f940b68ba3064e77cbd3239985a3',
2881
+ source: 'https://github.com/ziglang/vscode-zig/blob/5a806c116fa1f940b68ba3064e77cbd3239985a3/syntaxes/zig.tmLanguage.json',
2882
2882
  },
2883
2883
  ]
2884
2884
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tm-grammars",
3
3
  "type": "module",
4
- "version": "1.5.4",
4
+ "version": "1.5.6",
5
5
  "packageManager": "pnpm@8.15.1",
6
6
  "description": "Collecton of TextMate grammars in JSON",
7
7
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",