tm-grammars 1.30.10 → 1.30.11

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
@@ -146,7 +146,7 @@ import { grammars } from 'tm-grammars'
146
146
  | `mdx` | | [wooorm/markdown-tm-language](https://github.com/wooorm/markdown-tm-language/blob/c78b1e5df644d24fa76716bbe26f4b48a6fc1610/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` | 127.71 kB |
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
- | `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 |
149
+ | `mojo` | | [modularml/mojo-syntax](https://github.com/modularml/mojo-syntax/blob/48cdeac4f6b542e0b50666a5725fdfadf6188836/syntaxes/mojo.syntax.json) | [MIT](https://raw.githubusercontent.com/modular/mojo-syntax/main/LICENSE) | | | 66.41 kB |
150
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 |
@@ -1847,10 +1847,13 @@
1847
1847
  ]
1848
1848
  },
1849
1849
  "generator": {
1850
- "begin": "\\bfor\\b",
1850
+ "begin": "(?:\\b(comptime)\\s+)?\\bfor\\b",
1851
1851
  "beginCaptures": {
1852
1852
  "0": {
1853
1853
  "name": "keyword.control.flow.python"
1854
+ },
1855
+ "1": {
1856
+ "name": "storage.modifier.declaration.python"
1854
1857
  }
1855
1858
  },
1856
1859
  "end": "\\bin\\b",
@@ -1877,7 +1880,7 @@
1877
1880
  "name": "keyword.control.import.python"
1878
1881
  }
1879
1882
  },
1880
- "match": "\\b(?:(and|assert|async|await|break|class|struct|trait|continue|del|elif|else|except|finally|for|from|global|if|in|is|(?<=\\.)lambda|lambda(?=\\s*[.=])|nonlocal|not|or|pass|raise|return|try|while|with|yield)|(def|fn|capturing|raises)|(as|import))\\b"
1883
+ "match": "\\b(?:(and|assert|async|await|break|class|struct|trait|continue|del|elif|else|except|finally|for|from|global|if|in|is|(?<=\\.)lambda|lambda(?=\\s*[.=])|nonlocal|not|or|pass|raise|return|try|while|with|yield)|(def|fn|capturing|raises|comptime)|(as|import))\\b"
1881
1884
  },
1882
1885
  "illegal-object-name": {
1883
1886
  "match": "\\b(True|False|None)\\b",
@@ -3589,10 +3592,37 @@
3589
3592
  "name": "storage.modifier.declaration.python"
3590
3593
  },
3591
3594
  "2": {
3592
- "name": "variable.other.python"
3595
+ "name": "keyword.control.flow.python"
3596
+ }
3597
+ },
3598
+ "match": "\\b(comptime)\\s+(if|for|assert)\\b"
3599
+ },
3600
+ {
3601
+ "begin": "\\b(var|let|alias|comptime)\\s+(?=[(_[:alpha:]])",
3602
+ "beginCaptures": {
3603
+ "1": {
3604
+ "name": "storage.modifier.declaration.python"
3593
3605
  }
3594
3606
  },
3595
- "match": "\\b(var|let|alias|comptime) \\s*([_[:alpha:]]\\w*)\\b"
3607
+ "end": "(?=[\\n#:=])",
3608
+ "patterns": [
3609
+ {
3610
+ "match": "\\b([_[:alpha:]]\\w*)\\b",
3611
+ "name": "variable.other.python"
3612
+ },
3613
+ {
3614
+ "match": ",",
3615
+ "name": "punctuation.separator.comma.python"
3616
+ },
3617
+ {
3618
+ "match": "\\(",
3619
+ "name": "punctuation.parenthesis.begin.python"
3620
+ },
3621
+ {
3622
+ "match": "\\)",
3623
+ "name": "punctuation.parenthesis.end.python"
3624
+ }
3625
+ ]
3596
3626
  }
3597
3627
  ]
3598
3628
  },
package/index.js CHANGED
@@ -2699,19 +2699,19 @@ export const grammars = [
2699
2699
  sourceApi: 'https://api.github.com/repos/textmate/mips.tmbundle/contents/Syntaxes/MIPS.tmLanguage?ref=eb7601016a109bf912a48a1c21988f3c4a59fb3a',
2700
2700
  },
2701
2701
  {
2702
- byteSize: 67524,
2702
+ byteSize: 68006,
2703
2703
  displayName: 'Mojo',
2704
2704
  funding: [
2705
2705
  ],
2706
- hash: 'h_XAV5rJGlX27v_1kFlnJOVIxan8syBzSvsmvpfXKA8',
2707
- lastUpdate: '2025-12-08T00:33:23Z',
2706
+ hash: 'JIPlKOaWcUycPSG-GR4id_vRtoHo4jEsjDPe8r-2U7c',
2707
+ lastUpdate: '2026-02-20T18:14:48Z',
2708
2708
  license: 'MIT',
2709
2709
  licenseUrl: 'https://raw.githubusercontent.com/modular/mojo-syntax/main/LICENSE',
2710
2710
  name: 'mojo',
2711
2711
  scopeName: 'source.mojo',
2712
- sha: 'bd0aaab252fbbc6d84d4e4922ec535d17fe7e832',
2713
- source: 'https://github.com/modularml/mojo-syntax/blob/bd0aaab252fbbc6d84d4e4922ec535d17fe7e832/syntaxes/mojo.syntax.json',
2714
- sourceApi: 'https://api.github.com/repos/modularml/mojo-syntax/contents/syntaxes/mojo.syntax.json?ref=bd0aaab252fbbc6d84d4e4922ec535d17fe7e832',
2712
+ sha: '48cdeac4f6b542e0b50666a5725fdfadf6188836',
2713
+ source: 'https://github.com/modularml/mojo-syntax/blob/48cdeac4f6b542e0b50666a5725fdfadf6188836/syntaxes/mojo.syntax.json',
2714
+ sourceApi: 'https://api.github.com/repos/modularml/mojo-syntax/contents/syntaxes/mojo.syntax.json?ref=48cdeac4f6b542e0b50666a5725fdfadf6188836',
2715
2715
  },
2716
2716
  {
2717
2717
  aliases: [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tm-grammars",
3
3
  "type": "module",
4
- "version": "1.30.10",
4
+ "version": "1.30.11",
5
5
  "description": "Collecton of TextMate grammars in JSON",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",