tm-grammars 1.30.2 → 1.30.3

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
@@ -147,7 +147,7 @@ import { grammars } from 'tm-grammars'
147
147
  | `mermaid` | `mmd` | [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.11 kB |
148
148
  | `mipsasm` | `mips` | [textmate/mips.tmbundle](https://github.com/textmate/mips.tmbundle/blob/eb7601016a109bf912a48a1c21988f3c4a59fb3a/Syntaxes/MIPS.tmLanguage) | | | | 2.90 kB |
149
149
  | `mojo` | | [modularml/mojo-syntax](https://github.com/modularml/mojo-syntax/blob/bd0aaab252fbbc6d84d4e4922ec535d17fe7e832/syntaxes/mojo.syntax.json) | [MIT](https://raw.githubusercontent.com/modular/mojo-syntax/main/LICENSE) | | | 65.94 kB |
150
- | `moonbit` | `mbt` `mbti` | [moonbitlang/moonbit-tmLanguage](https://github.com/moonbitlang/moonbit-tmLanguage/blob/d9501977864ee8196d4f40551cfc4561f7499bc7/grammars/moonbit.tmLanguage.json) | [Apache-2.0](https://raw.githubusercontent.com/moonbitlang/moonbit-tmLanguage/main/LICENSE) | | | 5.13 kB |
150
+ | `moonbit` | `mbt` `mbti` | [moonbitlang/moonbit-tmLanguage](https://github.com/moonbitlang/moonbit-tmLanguage/blob/75c3fca1a0136c6ee4b6a01021b6a5aa25810117/grammars/moonbit.tmLanguage.json) | [Apache-2.0](https://raw.githubusercontent.com/moonbitlang/moonbit-tmLanguage/main/LICENSE) | | | 5.45 kB |
151
151
  | `move` | | [damirka/move-syntax](https://github.com/damirka/move-syntax/blob/03e44307aefd99bac3c10bda4430a22c92d6d476/syntaxes/move.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/damirka/move-syntax/main/LICENSE) | | | 16.59 kB |
152
152
  | `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.38 kB |
153
153
  | `nextflow` | `nf` | [nextflow-io/vscode-language-nextflow](https://github.com/nextflow-io/vscode-language-nextflow/blob/720a2bd501837ca815acf4a225d9f3ba71a2adb0/syntaxes/nextflow.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/nextflow-io/vscode-language-nextflow/main/LICENSE.md) | | | 4.11 kB |
@@ -75,28 +75,37 @@
75
75
  "name": "comment.block.documentation.moonbit",
76
76
  "patterns": [
77
77
  {
78
- "begin": "\\s*```",
78
+ "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(mbt\\s+test|mbt\\s+test(async)|mbt|moonbit\\s+test|moonbit\\s+test(async)|moonbit|)(\\s+[^`~]*)?$)",
79
79
  "beginCaptures": {
80
- "0": {
81
- "name": "markup.fenced_code.block.markdown"
80
+ "3": {
81
+ "name": "punctuation.definition.markdown"
82
+ },
83
+ "5": {
84
+ "name": "fenced_code.block.language"
85
+ },
86
+ "6": {
87
+ "name": "fenced_code.block.language.attributes"
82
88
  }
83
89
  },
84
- "end": "\\s*```",
90
+ "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$",
85
91
  "endCaptures": {
86
- "0": {
87
- "name": "markup.fenced_code.block.markdown"
92
+ "3": {
93
+ "name": "punctuation.definition.markdown"
88
94
  }
89
95
  },
90
- "name": "meta.embedded.line.moonbit",
96
+ "name": "markup.fenced_code.block.markdown",
91
97
  "patterns": [
92
98
  {
93
- "include": "$self"
99
+ "begin": "(^|\\G)(\\s*)(.*)",
100
+ "contentName": "meta.embedded.block.moonbit",
101
+ "patterns": [
102
+ {
103
+ "include": "$self"
104
+ }
105
+ ],
106
+ "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)"
94
107
  }
95
108
  ]
96
- },
97
- {
98
- "match": ".*",
99
- "name": "comment.block.documentation.moonbit"
100
109
  }
101
110
  ],
102
111
  "while": "///"
@@ -260,7 +269,7 @@
260
269
  "name": "keyword.control.moonbit"
261
270
  },
262
271
  {
263
- "match": "\\b(type!|lexmatch\\?|(type|typealias|let|const|enum|struct|import|trait|traitalias|derive|test|impl|with|fnalias|recur|suberror|letrec|and)\\b)",
272
+ "match": "\\b(type!|lexmatch\\?|(type|typealias|let|const|enum|struct|import|trait|traitalias|derive|test|impl|with|fnalias|recur|suberror|letrec|and|where|declare)\\b)",
264
273
  "name": "keyword.moonbit"
265
274
  },
266
275
  {
package/index.js CHANGED
@@ -2718,22 +2718,22 @@ export const grammars = [
2718
2718
  'mbt',
2719
2719
  'mbti',
2720
2720
  ],
2721
- byteSize: 5253,
2721
+ byteSize: 5583,
2722
2722
  categories: [
2723
2723
  'general',
2724
2724
  ],
2725
2725
  displayName: 'MoonBit',
2726
2726
  funding: [
2727
2727
  ],
2728
- hash: 'GdNpxS43j1J7RQ97qIz_9dS4iDIGZ4E-L4JEPR5x5b0',
2729
- lastUpdate: '2025-11-04T03:43:34Z',
2728
+ hash: 'jWKKyHE3cowrgYaILFR5YbWGHS55RltFX0nA6R1-y-U',
2729
+ lastUpdate: '2026-01-21T04:10:01Z',
2730
2730
  license: 'Apache-2.0',
2731
2731
  licenseUrl: 'https://raw.githubusercontent.com/moonbitlang/moonbit-tmLanguage/main/LICENSE',
2732
2732
  name: 'moonbit',
2733
2733
  scopeName: 'source.moonbit',
2734
- sha: 'd9501977864ee8196d4f40551cfc4561f7499bc7',
2735
- source: 'https://github.com/moonbitlang/moonbit-tmLanguage/blob/d9501977864ee8196d4f40551cfc4561f7499bc7/grammars/moonbit.tmLanguage.json',
2736
- sourceApi: 'https://api.github.com/repos/moonbitlang/moonbit-tmLanguage/contents/grammars/moonbit.tmLanguage.json?ref=d9501977864ee8196d4f40551cfc4561f7499bc7',
2734
+ sha: '75c3fca1a0136c6ee4b6a01021b6a5aa25810117',
2735
+ source: 'https://github.com/moonbitlang/moonbit-tmLanguage/blob/75c3fca1a0136c6ee4b6a01021b6a5aa25810117/grammars/moonbit.tmLanguage.json',
2736
+ sourceApi: 'https://api.github.com/repos/moonbitlang/moonbit-tmLanguage/contents/grammars/moonbit.tmLanguage.json?ref=75c3fca1a0136c6ee4b6a01021b6a5aa25810117',
2737
2737
  },
2738
2738
  {
2739
2739
  byteSize: 16984,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tm-grammars",
3
3
  "type": "module",
4
- "version": "1.30.2",
4
+ "version": "1.30.3",
5
5
  "description": "Collecton of TextMate grammars in JSON",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",