tm-grammars 1.6.8 → 1.6.10
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 +3 -3
- package/grammars/move.json +62 -43
- package/grammars/nushell.json +1 -1
- package/grammars/pascal.json +1 -1
- package/index.js +12 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -123,17 +123,17 @@ 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/
|
|
126
|
+
| `move` | | [damirka/move-syntax](https://github.com/damirka/move-syntax/blob/6f8ae1a8a5edb63283a6f89284f8158e4544b16c/syntaxes/move.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/damirka/move-syntax/main/LICENSE) | | 17.06 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 |
|
|
130
130
|
| `nim` | | [pragmagic/vscode-nim](https://github.com/pragmagic/vscode-nim/blob/0272a0544ddf147fde98f8a8f2b624b7dcb19eb3/syntaxes/nim.json) | [NOASSERTION](https://raw.githubusercontent.com/pragmagic/vscode-nim/master/LICENSE) | `c` `html` `xml` `javascript` `css` `glsl` `markdown` | 21.82 kB |
|
|
131
131
|
| `nix` | | [bbenoist/vscode-nix](https://github.com/bbenoist/vscode-nix/blob/9a7c81109624431e032d9b02c8029b13bc2000c8/syntaxes/nix.tmLanguage) | [MIT](https://raw.githubusercontent.com/bbenoist/vscode-nix/master/LICENSE.md) | | 14.32 kB |
|
|
132
|
-
| `nushell` | `nu` | [nushell/vscode-nushell-lang](https://github.com/nushell/vscode-nushell-lang/blob/
|
|
132
|
+
| `nushell` | `nu` | [nushell/vscode-nushell-lang](https://github.com/nushell/vscode-nushell-lang/blob/359e3a69c516c996e5bcd7161290f78feaebbbfb/syntaxes/nushell.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/nushell/vscode-nushell-lang/main/LICENSE) | | 18.38 kB |
|
|
133
133
|
| `objective-c` | `objc` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/bd1abe08c38bb5deccf65610f8f3c03d2338d20d/extensions/objective-c/syntaxes/objective-c.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 103.61 kB |
|
|
134
134
|
| `objective-cpp` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/bd1abe08c38bb5deccf65610f8f3c03d2338d20d/extensions/objective-c/syntaxes/objective-c++.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 168.52 kB |
|
|
135
135
|
| `ocaml` | | [reasonml-editor/vscode-reasonml](https://github.com/reasonml-editor/vscode-reasonml/blob/14af625ec50ed9968b957b4d6336c5338d81af45/syntaxes/ocaml.json) | [Apache-2.0](https://raw.githubusercontent.com/reasonml-editor/vscode-reasonml/master/LICENSE) | | 61.86 kB |
|
|
136
|
-
| `pascal` | | [alefragnani/vscode-language-pascal](https://github.com/alefragnani/vscode-language-pascal/blob/
|
|
136
|
+
| `pascal` | | [alefragnani/vscode-language-pascal](https://github.com/alefragnani/vscode-language-pascal/blob/b364f43ef1747a22872cf98d1844d976576f9df0/syntaxes/pascal.tmLanguage) | [MIT](https://raw.githubusercontent.com/alefragnani/vscode-language-pascal/master/LICENSE.md) | | 3.90 kB |
|
|
137
137
|
| `perl` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/e637ff1bf7f481134849625e982ec80df9b35bc8/extensions/perl/syntaxes/perl.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `html` `xml` `css` `javascript` `sql` | 41.97 kB |
|
|
138
138
|
| `php` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/06401b39b18c5e7d1c021a619fa387d654033606/extensions/php/syntaxes/php.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `html` `xml` `sql` `javascript` `json` `css` | 105.49 kB |
|
|
139
139
|
| `plsql` | | [zabel-xyz/plsql-language](https://github.com/zabel-xyz/plsql-language/blob/256a6b8f04f2bdc5e60ce921646a5068957078d7/syntaxes/plsql.tmLanguage) | [MIT](https://raw.githubusercontent.com/zabel-xyz/plsql-language/master/LICENSE) | | 7.99 kB |
|
package/grammars/move.json
CHANGED
|
@@ -16,6 +16,12 @@
|
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
"include": "#attributes"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"begin": "\\b(while)\\b",
|
|
22
|
+
"comment": "While experiment",
|
|
23
|
+
"name": "keyword.control.while.whaaat.move",
|
|
24
|
+
"while": "[a-z]"
|
|
19
25
|
}
|
|
20
26
|
],
|
|
21
27
|
"repository": {
|
|
@@ -270,6 +276,9 @@
|
|
|
270
276
|
{
|
|
271
277
|
"include": "#let"
|
|
272
278
|
},
|
|
279
|
+
{
|
|
280
|
+
"include": "#types"
|
|
281
|
+
},
|
|
273
282
|
{
|
|
274
283
|
"include": "#literals"
|
|
275
284
|
},
|
|
@@ -463,7 +472,7 @@
|
|
|
463
472
|
"include": "#mut"
|
|
464
473
|
},
|
|
465
474
|
{
|
|
466
|
-
"begin": "(
|
|
475
|
+
"begin": "(?<=\\bfun)",
|
|
467
476
|
"comment": "Function name",
|
|
468
477
|
"end": "(?=[<(])",
|
|
469
478
|
"name": "meta.function_name.move",
|
|
@@ -527,6 +536,24 @@
|
|
|
527
536
|
"match": "\\b(has)\\b",
|
|
528
537
|
"name": "keyword.control.ability.has.move"
|
|
529
538
|
},
|
|
539
|
+
"has_ability": {
|
|
540
|
+
"begin": "(?<=[})])\\s+(has)\\b",
|
|
541
|
+
"beginCaptures": {
|
|
542
|
+
"1": {
|
|
543
|
+
"name": "storage.modifier.type.move"
|
|
544
|
+
}
|
|
545
|
+
},
|
|
546
|
+
"end": ";",
|
|
547
|
+
"name": "meta.has.ability.move",
|
|
548
|
+
"patterns": [
|
|
549
|
+
{
|
|
550
|
+
"include": "#comments"
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
"include": "#abilities"
|
|
554
|
+
}
|
|
555
|
+
]
|
|
556
|
+
},
|
|
530
557
|
"ident": {
|
|
531
558
|
"match": "\\b([a-zA-Z][A-Z_a-z0-9]*)\\b",
|
|
532
559
|
"name": "meta.identifier.move"
|
|
@@ -747,7 +774,7 @@
|
|
|
747
774
|
"include": "#escaped_identifier"
|
|
748
775
|
},
|
|
749
776
|
{
|
|
750
|
-
"begin": "(
|
|
777
|
+
"begin": "(?<=\\b(module|spec))",
|
|
751
778
|
"comment": "Module namespace / address",
|
|
752
779
|
"end": "(?=[(::){])",
|
|
753
780
|
"name": "constant.other.move"
|
|
@@ -796,6 +823,9 @@
|
|
|
796
823
|
{
|
|
797
824
|
"include": "#struct"
|
|
798
825
|
},
|
|
826
|
+
{
|
|
827
|
+
"include": "#has_ability"
|
|
828
|
+
},
|
|
799
829
|
{
|
|
800
830
|
"include": "#enum"
|
|
801
831
|
},
|
|
@@ -807,9 +837,6 @@
|
|
|
807
837
|
},
|
|
808
838
|
{
|
|
809
839
|
"include": "#spec"
|
|
810
|
-
},
|
|
811
|
-
{
|
|
812
|
-
"include": "#block"
|
|
813
840
|
}
|
|
814
841
|
]
|
|
815
842
|
}
|
|
@@ -879,7 +906,7 @@
|
|
|
879
906
|
"name": "storage.modifier.visibility.public.move"
|
|
880
907
|
},
|
|
881
908
|
"public-scope": {
|
|
882
|
-
"begin": "(
|
|
909
|
+
"begin": "(?<=\\b(public))\\s*\\(",
|
|
883
910
|
"comment": "public (friend/script/package)",
|
|
884
911
|
"end": "\\)",
|
|
885
912
|
"name": "meta.public.scoped.move",
|
|
@@ -1063,7 +1090,7 @@
|
|
|
1063
1090
|
"include": "#types"
|
|
1064
1091
|
},
|
|
1065
1092
|
{
|
|
1066
|
-
"begin": "(
|
|
1093
|
+
"begin": "(?<=\\bdefine)",
|
|
1067
1094
|
"comment": "Function name",
|
|
1068
1095
|
"end": "(?=[(])",
|
|
1069
1096
|
"patterns": [
|
|
@@ -1094,61 +1121,50 @@
|
|
|
1094
1121
|
"name": "storage.modifier.type.move"
|
|
1095
1122
|
}
|
|
1096
1123
|
},
|
|
1097
|
-
"end": "(?<=[}
|
|
1124
|
+
"end": "(?<=[};\\)])",
|
|
1098
1125
|
"name": "meta.struct.move",
|
|
1099
1126
|
"patterns": [
|
|
1100
1127
|
{
|
|
1101
1128
|
"include": "#comments"
|
|
1102
1129
|
},
|
|
1103
1130
|
{
|
|
1104
|
-
"
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
"
|
|
1131
|
+
"include": "#escaped_identifier"
|
|
1132
|
+
},
|
|
1133
|
+
{
|
|
1134
|
+
"include": "#has"
|
|
1135
|
+
},
|
|
1136
|
+
{
|
|
1137
|
+
"include": "#abilities"
|
|
1138
|
+
},
|
|
1139
|
+
{
|
|
1140
|
+
"comment": "Struct name (ident)",
|
|
1141
|
+
"match": "\\b[A-Z][a-zA-Z_0-9]*\\b",
|
|
1142
|
+
"name": "entity.name.type.struct.move"
|
|
1143
|
+
},
|
|
1144
|
+
{
|
|
1145
|
+
"begin": "\\(",
|
|
1146
|
+
"comment": "Positional fields",
|
|
1147
|
+
"end": "\\)",
|
|
1148
|
+
"name": "meta.struct.paren.move",
|
|
1108
1149
|
"patterns": [
|
|
1109
1150
|
{
|
|
1110
1151
|
"include": "#comments"
|
|
1111
1152
|
},
|
|
1112
1153
|
{
|
|
1113
|
-
"include": "#
|
|
1114
|
-
},
|
|
1115
|
-
{
|
|
1116
|
-
"include": "#has"
|
|
1117
|
-
},
|
|
1118
|
-
{
|
|
1119
|
-
"include": "#abilities"
|
|
1120
|
-
},
|
|
1121
|
-
{
|
|
1122
|
-
"comment": "Struct name (ident)",
|
|
1123
|
-
"match": "\\b[A-Z][a-zA-Z_0-9]*\\b",
|
|
1124
|
-
"name": "entity.name.type.struct.move"
|
|
1125
|
-
},
|
|
1126
|
-
{
|
|
1127
|
-
"begin": "\\(",
|
|
1128
|
-
"comment": "Simple struct",
|
|
1129
|
-
"end": "\\)",
|
|
1130
|
-
"name": "meta.struct.paren.move",
|
|
1131
|
-
"patterns": [
|
|
1132
|
-
{
|
|
1133
|
-
"include": "#comments"
|
|
1134
|
-
},
|
|
1135
|
-
{
|
|
1136
|
-
"include": "#capitalized"
|
|
1137
|
-
},
|
|
1138
|
-
{
|
|
1139
|
-
"include": "#types"
|
|
1140
|
-
}
|
|
1141
|
-
]
|
|
1154
|
+
"include": "#capitalized"
|
|
1142
1155
|
},
|
|
1143
1156
|
{
|
|
1144
|
-
"include": "#
|
|
1157
|
+
"include": "#types"
|
|
1145
1158
|
}
|
|
1146
1159
|
]
|
|
1147
1160
|
},
|
|
1161
|
+
{
|
|
1162
|
+
"include": "#type_param"
|
|
1163
|
+
},
|
|
1148
1164
|
{
|
|
1149
1165
|
"begin": "\\(",
|
|
1150
1166
|
"comment": "Simple struct",
|
|
1151
|
-
"end": "
|
|
1167
|
+
"end": "(?<=[)])",
|
|
1152
1168
|
"name": "meta.struct.paren.move",
|
|
1153
1169
|
"patterns": [
|
|
1154
1170
|
{
|
|
@@ -1187,6 +1203,9 @@
|
|
|
1187
1203
|
"include": "#types"
|
|
1188
1204
|
}
|
|
1189
1205
|
]
|
|
1206
|
+
},
|
|
1207
|
+
{
|
|
1208
|
+
"include": "#has_ability"
|
|
1190
1209
|
}
|
|
1191
1210
|
]
|
|
1192
1211
|
},
|
package/grammars/nushell.json
CHANGED
|
@@ -403,7 +403,7 @@
|
|
|
403
403
|
]
|
|
404
404
|
},
|
|
405
405
|
"function": {
|
|
406
|
-
"begin": "((?:export\\s+)?def(?:\\s+--\\w+)
|
|
406
|
+
"begin": "((?:export\\s+)?def(?:\\s+--\\w+)*)\\s+([\\w\\-]+|\"[\\w\\- ]+\"|'[\\w\\- ]+'|`[\\w\\- ]+`)(\\s+--\\w+)*",
|
|
407
407
|
"beginCaptures": {
|
|
408
408
|
"1": {
|
|
409
409
|
"name": "entity.name.function.nushell"
|
package/grammars/pascal.json
CHANGED
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"name": "string.regexp"
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
|
-
"match": "\\b(?i:(ansichar|ansistring|boolean|byte|cardinal|char|comp|currency|double|dword|extended|file|integer|int64|longint|longword|nativeint|nativeuint|olevariant|pansichar|pchar|pwidechar|pointer|real|shortint|shortstring|single|smallint|string|uint64|variant|widechar|widestring|word|wordbool))\\b",
|
|
67
|
+
"match": "\\b(?i:(ansichar|ansistring|boolean|byte|cardinal|char|comp|currency|double|dword|extended|file|integer|int8|int16|int32|int64|longint|longword|nativeint|nativeuint|olevariant|pansichar|pchar|pwidechar|pointer|real|shortint|shortstring|single|smallint|string|uint8|uint16|uint32|uint64|variant|widechar|widestring|word|wordbool|uintptr|intptr))\\b",
|
|
68
68
|
"name": "storage.support.type.pascal"
|
|
69
69
|
},
|
|
70
70
|
{
|
package/index.js
CHANGED
|
@@ -1690,15 +1690,15 @@ export const grammars = [
|
|
|
1690
1690
|
source: 'https://github.com/modularml/mojo-syntax/blob/46eccdaeda2b1587e9b82808cdb35670f359d16d/syntaxes/mojo.syntax.json',
|
|
1691
1691
|
},
|
|
1692
1692
|
{
|
|
1693
|
-
byteSize:
|
|
1693
|
+
byteSize: 17473,
|
|
1694
1694
|
displayName: 'Move',
|
|
1695
|
-
lastUpdate: '2024-
|
|
1695
|
+
lastUpdate: '2024-04-22T17:43:01Z',
|
|
1696
1696
|
license: 'MIT',
|
|
1697
1697
|
licenseUrl: 'https://raw.githubusercontent.com/damirka/move-syntax/main/LICENSE',
|
|
1698
1698
|
name: 'move',
|
|
1699
1699
|
scopeName: 'source.move',
|
|
1700
|
-
sha: '
|
|
1701
|
-
source: 'https://github.com/damirka/move-syntax/blob/
|
|
1700
|
+
sha: '6f8ae1a8a5edb63283a6f89284f8158e4544b16c',
|
|
1701
|
+
source: 'https://github.com/damirka/move-syntax/blob/6f8ae1a8a5edb63283a6f89284f8158e4544b16c/syntaxes/move.tmLanguage.json',
|
|
1702
1702
|
},
|
|
1703
1703
|
{
|
|
1704
1704
|
aliases: [
|
|
@@ -1780,15 +1780,15 @@ export const grammars = [
|
|
|
1780
1780
|
aliases: [
|
|
1781
1781
|
'nu',
|
|
1782
1782
|
],
|
|
1783
|
-
byteSize:
|
|
1783
|
+
byteSize: 18816,
|
|
1784
1784
|
displayName: 'nushell',
|
|
1785
|
-
lastUpdate: '2024-
|
|
1785
|
+
lastUpdate: '2024-04-22T15:44:22Z',
|
|
1786
1786
|
license: 'MIT',
|
|
1787
1787
|
licenseUrl: 'https://raw.githubusercontent.com/nushell/vscode-nushell-lang/main/LICENSE',
|
|
1788
1788
|
name: 'nushell',
|
|
1789
1789
|
scopeName: 'source.nushell',
|
|
1790
|
-
sha: '
|
|
1791
|
-
source: 'https://github.com/nushell/vscode-nushell-lang/blob/
|
|
1790
|
+
sha: '359e3a69c516c996e5bcd7161290f78feaebbbfb',
|
|
1791
|
+
source: 'https://github.com/nushell/vscode-nushell-lang/blob/359e3a69c516c996e5bcd7161290f78feaebbbfb/syntaxes/nushell.tmLanguage.json',
|
|
1792
1792
|
},
|
|
1793
1793
|
{
|
|
1794
1794
|
aliases: [
|
|
@@ -1836,18 +1836,18 @@ export const grammars = [
|
|
|
1836
1836
|
source: 'https://github.com/reasonml-editor/vscode-reasonml/blob/14af625ec50ed9968b957b4d6336c5338d81af45/syntaxes/ocaml.json',
|
|
1837
1837
|
},
|
|
1838
1838
|
{
|
|
1839
|
-
byteSize:
|
|
1839
|
+
byteSize: 3996,
|
|
1840
1840
|
categories: [
|
|
1841
1841
|
'general',
|
|
1842
1842
|
],
|
|
1843
1843
|
displayName: 'Pascal',
|
|
1844
|
-
lastUpdate: '
|
|
1844
|
+
lastUpdate: '2024-04-14T00:32:39Z',
|
|
1845
1845
|
license: 'MIT',
|
|
1846
1846
|
licenseUrl: 'https://raw.githubusercontent.com/alefragnani/vscode-language-pascal/master/LICENSE.md',
|
|
1847
1847
|
name: 'pascal',
|
|
1848
1848
|
scopeName: 'source.pascal',
|
|
1849
|
-
sha: '
|
|
1850
|
-
source: 'https://github.com/alefragnani/vscode-language-pascal/blob/
|
|
1849
|
+
sha: 'b364f43ef1747a22872cf98d1844d976576f9df0',
|
|
1850
|
+
source: 'https://github.com/alefragnani/vscode-language-pascal/blob/b364f43ef1747a22872cf98d1844d976576f9df0/syntaxes/pascal.tmLanguage',
|
|
1851
1851
|
},
|
|
1852
1852
|
{
|
|
1853
1853
|
byteSize: 42982,
|
package/package.json
CHANGED