tm-grammars 1.5.3 → 1.5.4
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 +1 -1
- package/grammars/mojo.json +10 -17
- package/index.js +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -122,7 +122,7 @@ import { grammars } from 'tm-grammars'
|
|
|
122
122
|
| `mdc` | | [nuxtlabs/vscode-mdc](https://github.com/nuxtlabs/vscode-mdc/blob/6294dbce9706f538a521e7dccce9609e928dc3be/syntaxes/mdc.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/nuxtlabs/vscode-mdc/main/LICENSE) | `markdown` `yaml` `html-derivative` | 19.05 kB |
|
|
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
|
-
| `mojo` | | [modularml/mojo-syntax](https://github.com/modularml/mojo-syntax/blob/
|
|
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
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 |
|
|
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 |
|
package/grammars/mojo.json
CHANGED
|
@@ -1057,9 +1057,6 @@
|
|
|
1057
1057
|
{
|
|
1058
1058
|
"include": "#backticks"
|
|
1059
1059
|
},
|
|
1060
|
-
{
|
|
1061
|
-
"include": "#illegal-anno"
|
|
1062
|
-
},
|
|
1063
1060
|
{
|
|
1064
1061
|
"include": "#literal"
|
|
1065
1062
|
},
|
|
@@ -1813,7 +1810,7 @@
|
|
|
1813
1810
|
"name": "meta.function.python",
|
|
1814
1811
|
"patterns": [
|
|
1815
1812
|
{
|
|
1816
|
-
"include": "#
|
|
1813
|
+
"include": "#function-modifier"
|
|
1817
1814
|
},
|
|
1818
1815
|
{
|
|
1819
1816
|
"include": "#function-def-name"
|
|
@@ -1846,6 +1843,10 @@
|
|
|
1846
1843
|
}
|
|
1847
1844
|
]
|
|
1848
1845
|
},
|
|
1846
|
+
"function-modifier": {
|
|
1847
|
+
"match": "(raises|capturing)",
|
|
1848
|
+
"name": "storage.modifier"
|
|
1849
|
+
},
|
|
1849
1850
|
"function-name": {
|
|
1850
1851
|
"patterns": [
|
|
1851
1852
|
{
|
|
@@ -1878,20 +1879,19 @@
|
|
|
1878
1879
|
}
|
|
1879
1880
|
]
|
|
1880
1881
|
},
|
|
1881
|
-
"illegal-anno": {
|
|
1882
|
-
"match": "->",
|
|
1883
|
-
"name": "invalid.illegal.annotation.python"
|
|
1884
|
-
},
|
|
1885
1882
|
"illegal-names": {
|
|
1886
1883
|
"captures": {
|
|
1887
1884
|
"1": {
|
|
1888
1885
|
"name": "keyword.control.flow.python"
|
|
1889
1886
|
},
|
|
1890
1887
|
"2": {
|
|
1888
|
+
"name": "storage.type.function.python"
|
|
1889
|
+
},
|
|
1890
|
+
"3": {
|
|
1891
1891
|
"name": "keyword.control.import.python"
|
|
1892
1892
|
}
|
|
1893
1893
|
},
|
|
1894
|
-
"match": "(?x)\n\\b(?:\n(\nand | assert | async | await | break | class | struct | trait | continue |
|
|
1894
|
+
"match": "(?x)\n\\b(?:\n(\nand | assert | async | await | break | class | struct | trait | continue | del | elif | else | except | finally | for | from | global\n| if | in | is | (?<=\\.)lambda | lambda(?=\\s*[\\.=])\n| nonlocal | not | or | pass | raise | return | try | while | with\n| yield\n) | (def | fn | capturing | raises) | (\nas | import\n)\n)\\b\n"
|
|
1895
1895
|
},
|
|
1896
1896
|
"illegal-object-name": {
|
|
1897
1897
|
"comment": "It's illegal to name class or function \"True\"",
|
|
@@ -2111,9 +2111,6 @@
|
|
|
2111
2111
|
{
|
|
2112
2112
|
"include": "#backticks"
|
|
2113
2113
|
},
|
|
2114
|
-
{
|
|
2115
|
-
"include": "#illegal-anno"
|
|
2116
|
-
},
|
|
2117
2114
|
{
|
|
2118
2115
|
"include": "#lambda-parameter-with-default"
|
|
2119
2116
|
},
|
|
@@ -2590,10 +2587,6 @@
|
|
|
2590
2587
|
}
|
|
2591
2588
|
]
|
|
2592
2589
|
},
|
|
2593
|
-
"raises-modifier": {
|
|
2594
|
-
"match": "(raises)",
|
|
2595
|
-
"name": "storage.modifier"
|
|
2596
|
-
},
|
|
2597
2590
|
"regexp": {
|
|
2598
2591
|
"patterns": [
|
|
2599
2592
|
{
|
|
@@ -3582,7 +3575,7 @@
|
|
|
3582
3575
|
"statement-keyword": {
|
|
3583
3576
|
"patterns": [
|
|
3584
3577
|
{
|
|
3585
|
-
"match": "\\b((async\\s+)?\\s*def)\\b",
|
|
3578
|
+
"match": "\\b((async\\s+)?\\s*(def|fn))\\b",
|
|
3586
3579
|
"name": "storage.type.function.python"
|
|
3587
3580
|
},
|
|
3588
3581
|
{
|
package/index.js
CHANGED
|
@@ -1678,15 +1678,15 @@ export const grammars = [
|
|
|
1678
1678
|
source: 'https://github.com/bpruitt-goddard/vscode-mermaid-syntax-highlight/blob/8b62f487cb7a89afcd152febfbf47f5d4787657f/syntaxes/mermaid.tmLanguage.yaml',
|
|
1679
1679
|
},
|
|
1680
1680
|
{
|
|
1681
|
-
byteSize:
|
|
1681
|
+
byteSize: 74655,
|
|
1682
1682
|
displayName: 'Mojo',
|
|
1683
|
-
lastUpdate: '
|
|
1683
|
+
lastUpdate: '2024-03-18T01:05:25Z',
|
|
1684
1684
|
license: 'MIT',
|
|
1685
1685
|
licenseUrl: 'https://raw.githubusercontent.com/modularml/mojo-syntax/main/LICENSE',
|
|
1686
1686
|
name: 'mojo',
|
|
1687
1687
|
scopeName: 'source.mojo',
|
|
1688
|
-
sha: '
|
|
1689
|
-
source: 'https://github.com/modularml/mojo-syntax/blob/
|
|
1688
|
+
sha: '46eccdaeda2b1587e9b82808cdb35670f359d16d',
|
|
1689
|
+
source: 'https://github.com/modularml/mojo-syntax/blob/46eccdaeda2b1587e9b82808cdb35670f359d16d/syntaxes/mojo.syntax.json',
|
|
1690
1690
|
},
|
|
1691
1691
|
{
|
|
1692
1692
|
byteSize: 16667,
|
package/package.json
CHANGED