tm-grammars 1.30.9 → 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 |
@@ -212,7 +212,7 @@ import { grammars } from 'tm-grammars'
212
212
  | `stata` | | [kylebarron/language-stata](https://github.com/kylebarron/language-stata/blob/dd98de502bc1bf2a205f3f023afb98c7aa5b42ee/grammars/stata.json) | [MIT](https://raw.githubusercontent.com/kylebarron/language-stata/master/LICENSE) | | `sql` | 54.40 kB |
213
213
  | `stylus` | `styl` | [d4rkr00t/language-stylus](https://github.com/d4rkr00t/language-stylus/blob/198a851f385aee857332f3ce5dd981ff67720ead/syntaxes/stylus.json) | [MIT](https://raw.githubusercontent.com/d4rkr00t/language-stylus/master/LICENSE) | [Open Collective: **stylus**](https://opencollective.com/stylus) | | 29.69 kB |
214
214
  | `surrealql` | `surql` | [surrealdb/surrealql-grammar](https://github.com/surrealdb/surrealql-grammar/blob/afb9c5362be1b291da3a6b7eb71902cc460759ed/syntaxes/surrealql.tmLanguage.json) | [Apache-2.0](https://raw.githubusercontent.com/surrealdb/surrealql-grammar/main/LICENSE) | | `javascript` | 20.92 kB |
215
- | `svelte` | | [sveltejs/language-tools](https://github.com/sveltejs/language-tools/blob/96e8ca884711bc5acaf1fda45ed7f95b38a75b4a/packages/svelte-vscode/syntaxes/svelte.tmLanguage.src.yaml) | [MIT](https://raw.githubusercontent.com/sveltejs/language-tools/master/LICENSE) | [Open Collective: **svelte**](https://opencollective.com/svelte) | `javascript` `typescript` `coffee` `stylus` `sass` `css` `scss` `less` `postcss` `pug` `markdown` | 17.03 kB |
215
+ | `svelte` | | [sveltejs/language-tools](https://github.com/sveltejs/language-tools/blob/32bd44e5af1eea464198cc6e841281b045e0f04d/packages/svelte-vscode/syntaxes/svelte.tmLanguage.src.yaml) | [MIT](https://raw.githubusercontent.com/sveltejs/language-tools/master/LICENSE) | [Open Collective: **svelte**](https://opencollective.com/svelte) | `javascript` `typescript` `coffee` `stylus` `sass` `css` `scss` `less` `postcss` `pug` `markdown` | 17.21 kB |
216
216
  | `swift` | | [jtbandes/swift-tmlanguage](https://github.com/jtbandes/swift-tmlanguage/blob/3fca2fa10f7dc962d19ee617b17844d6eecfa2cb/Swift.tmLanguage.yaml) | [MIT](https://raw.githubusercontent.com/jtbandes/swift-tmlanguage/main/LICENSE.md) | [GitHub Sponsors: **@jtbandes**](https://github.com/sponsors/jtbandes) [Ko-fi: **jtbandes**](https://ko-fi.com/jtbandes) | | 81.77 kB |
217
217
  | `system-verilog` | | [mshr-h/vscode-verilog-hdl-support](https://github.com/mshr-h/vscode-verilog-hdl-support/blob/a63b28cd8f15d9ec4861b2f802e8bf6ce4f6d2f2/syntaxes/systemverilog.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/mshr-h/vscode-verilog-hdl-support/main/LICENSE) | [buymeacoffee.com](https://www.buymeacoffee.com/mshr.h) | | 24.20 kB |
218
218
  | `systemd` | | [hangxingliu/vscode-systemd](https://github.com/hangxingliu/vscode-systemd/blob/62ace1156b5afa0ec9932e3a55cfc00c0123c457/src/syntax/systemd.tmLanguage) | [MIT](https://raw.githubusercontent.com/hangxingliu/vscode-systemd/main/LICENSE) | | | 7.39 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
  },
@@ -230,6 +230,9 @@
230
230
  "repository": {
231
231
  "attributes": {
232
232
  "patterns": [
233
+ {
234
+ "include": "#attributes-comments"
235
+ },
233
236
  {
234
237
  "include": "#attributes-directives"
235
238
  },
@@ -259,6 +262,19 @@
259
262
  }
260
263
  ]
261
264
  },
265
+ "attributes-comments": {
266
+ "patterns": [
267
+ {
268
+ "match": "//.*$",
269
+ "name": "comment.line.double-slash.svelte"
270
+ },
271
+ {
272
+ "begin": "/\\*",
273
+ "end": "\\*/",
274
+ "name": "comment.block.svelte"
275
+ }
276
+ ]
277
+ },
262
278
  "attributes-directives": {
263
279
  "begin": "(?<!<)(on|use|bind|transition|in|out|animate|let|class|style)(:)(?:((?:--)?[$_[:alpha:]][-$_[:alnum:]]*(?=\\s*=))|((?:--)?[$_[:alpha:]][-$_[:alnum:]]*))((\\|\\w+)*)",
264
280
  "beginCaptures": {
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: [
@@ -4023,7 +4023,7 @@ export const grammars = [
4023
4023
  sourceApi: 'https://api.github.com/repos/surrealdb/surrealql-grammar/contents/syntaxes/surrealql.tmLanguage.json?ref=afb9c5362be1b291da3a6b7eb71902cc460759ed',
4024
4024
  },
4025
4025
  {
4026
- byteSize: 17434,
4026
+ byteSize: 17626,
4027
4027
  categories: [
4028
4028
  'web',
4029
4029
  ],
@@ -4048,15 +4048,15 @@ export const grammars = [
4048
4048
  url: 'https://opencollective.com/svelte',
4049
4049
  },
4050
4050
  ],
4051
- hash: 'a10k1mosWQ2VJcBN_7EJbn0KhnjHT-8YhyJtqKOeY38',
4052
- lastUpdate: '2025-12-20T05:48:15Z',
4051
+ hash: '-YTsNpoDnZ095A8rWesBfONWtrrdl1JQBEAk5miqegQ',
4052
+ lastUpdate: '2026-02-18T22:39:19Z',
4053
4053
  license: 'MIT',
4054
4054
  licenseUrl: 'https://raw.githubusercontent.com/sveltejs/language-tools/master/LICENSE',
4055
4055
  name: 'svelte',
4056
4056
  scopeName: 'source.svelte',
4057
- sha: '96e8ca884711bc5acaf1fda45ed7f95b38a75b4a',
4058
- source: 'https://github.com/sveltejs/language-tools/blob/96e8ca884711bc5acaf1fda45ed7f95b38a75b4a/packages/svelte-vscode/syntaxes/svelte.tmLanguage.src.yaml',
4059
- sourceApi: 'https://api.github.com/repos/sveltejs/language-tools/contents/packages/svelte-vscode/syntaxes/svelte.tmLanguage.src.yaml?ref=96e8ca884711bc5acaf1fda45ed7f95b38a75b4a',
4057
+ sha: '32bd44e5af1eea464198cc6e841281b045e0f04d',
4058
+ source: 'https://github.com/sveltejs/language-tools/blob/32bd44e5af1eea464198cc6e841281b045e0f04d/packages/svelte-vscode/syntaxes/svelte.tmLanguage.src.yaml',
4059
+ sourceApi: 'https://api.github.com/repos/sveltejs/language-tools/contents/packages/svelte-vscode/syntaxes/svelte.tmLanguage.src.yaml?ref=32bd44e5af1eea464198cc6e841281b045e0f04d',
4060
4060
  },
4061
4061
  {
4062
4062
  byteSize: 83734,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tm-grammars",
3
3
  "type": "module",
4
- "version": "1.30.9",
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",