tm-grammars 1.4.0 → 1.4.2
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/crystal.json +8 -3
- package/grammars/gdscript.json +21 -0
- package/grammars/nushell.json +29 -9
- package/index.js +12 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -49,7 +49,7 @@ import { grammars } from 'tm-grammars'
|
|
|
49
49
|
| `codeql` | `ql` | [github/vscode-codeql](https://github.com/github/vscode-codeql/blob/47fa163cb9fffce379458962eb391c9ef9082dcb/syntaxes/ql.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/github/vscode-codeql/main/LICENSE.md) | | 32.73 kB |
|
|
50
50
|
| `coffee` | `coffeescript` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/ff58f5083f57b50e6a100ab60454dfb72fe21e80/extensions/coffeescript/syntaxes/coffeescript.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `javascript` | 26.34 kB |
|
|
51
51
|
| `cpp` | `c++` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/6ac83c7c7dda9f27ca1fe9d98675253e010b75d1/extensions/cpp/syntaxes/cpp.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `cpp-macro` `glsl` `sql` | 411.01 kB |
|
|
52
|
-
| `crystal` | | [crystal-lang-tools/vscode-crystal-lang](https://github.com/crystal-lang-tools/vscode-crystal-lang/blob/
|
|
52
|
+
| `crystal` | | [crystal-lang-tools/vscode-crystal-lang](https://github.com/crystal-lang-tools/vscode-crystal-lang/blob/592999d041bdc59b0127dee68bd225330eb9bc41/syntaxes/crystal.json) | [MIT](https://raw.githubusercontent.com/crystal-lang-tools/vscode-crystal-lang/master/LICENSE) | `html` `sql` `css` `c` `javascript` `shellscript` | 31.59 kB |
|
|
53
53
|
| `csharp` | `c#` `cs` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/35d97bc7e439fce0f50f42074041ab2d8571b20a/extensions/csharp/syntaxes/csharp.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 83.23 kB |
|
|
54
54
|
| `css` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/ae23e73ba0690ae82614d585e10a88d608ccdda0/extensions/css/syntaxes/css.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 48.60 kB |
|
|
55
55
|
| `csv` | | [mechatroner/vscode_rainbow_csv](https://github.com/mechatroner/vscode_rainbow_csv/blob/3bdafafa12940a75166089b64bdd80b1d3b071db/syntaxes/csv.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/mechatroner/vscode_rainbow_csv/master/LICENSE) | | 1.07 kB |
|
|
@@ -70,7 +70,7 @@ import { grammars } from 'tm-grammars'
|
|
|
70
70
|
| `fortran-free-form` | `f90` `f95` `f03` `f08` `f18` | [fortran-lang/vscode-fortran-support](https://github.com/fortran-lang/vscode-fortran-support/blob/f7fb41579770a0d8c75b9f295d167b31147b4f33/syntaxes/fortran_free-form.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/fortran-lang/vscode-fortran-support/main/LICENSE) | | 92.92 kB |
|
|
71
71
|
| `fsharp` | `f#` `fs` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/35d97bc7e439fce0f50f42074041ab2d8571b20a/extensions/fsharp/syntaxes/fsharp.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `markdown` | 24.18 kB |
|
|
72
72
|
| `gdresource` | | [godotengine/godot-vscode-plugin](https://github.com/godotengine/godot-vscode-plugin/blob/e7e2d0439dea0fb3a568378554c81e0a17348a84/syntaxes/GDResource.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/godotengine/godot-vscode-plugin/master/LICENSE) | `gdshader` `gdscript` | 4.90 kB |
|
|
73
|
-
| `gdscript` | | [godotengine/godot-vscode-plugin](https://github.com/godotengine/godot-vscode-plugin/blob/
|
|
73
|
+
| `gdscript` | | [godotengine/godot-vscode-plugin](https://github.com/godotengine/godot-vscode-plugin/blob/0c9c2554fb6eb25d8e30fa32cc31d1eba0941bba/syntaxes/GDScript.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/godotengine/godot-vscode-plugin/master/LICENSE) | | 16.09 kB |
|
|
74
74
|
| `gdshader` | | [godotengine/godot-vscode-plugin](https://github.com/godotengine/godot-vscode-plugin/blob/e7e2d0439dea0fb3a568378554c81e0a17348a84/syntaxes/GDShader.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/godotengine/godot-vscode-plugin/master/LICENSE) | | 5.95 kB |
|
|
75
75
|
| `gherkin` | | [alexkrechik/VSCucumberAutoComplete](https://github.com/alexkrechik/VSCucumberAutoComplete/blob/fc8da969b1c83e13ef5124b1ec90ba5211bc1e5f/gclient/syntaxes/feature.tmLanguage) | [MIT](https://raw.githubusercontent.com/alexkrechik/VSCucumberAutoComplete/master/LICENSE) | | 12.13 kB |
|
|
76
76
|
| `git-commit` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/f8c3f89468fea14103d8790d59ea8594d6e644eb/extensions/git-base/syntaxes/git-commit.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `diff` | 1.36 kB |
|
|
@@ -128,7 +128,7 @@ import { grammars } from 'tm-grammars'
|
|
|
128
128
|
| `nginx` | | [hangxingliu/vscode-nginx-conf-hint](https://github.com/hangxingliu/vscode-nginx-conf-hint/blob/0582d5b71a31ff893b3587996b233f22239fba57/src/syntax/nginx.tmLanguage) | [GPL-3.0](https://raw.githubusercontent.com/hangxingliu/vscode-nginx-conf-hint/main/LICENSE) | `lua` | 32.83 kB |
|
|
129
129
|
| `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 |
|
|
130
130
|
| `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 |
|
|
131
|
-
| `nushell` | `nu` | [nushell/vscode-nushell-lang](https://github.com/nushell/vscode-nushell-lang/blob/
|
|
131
|
+
| `nushell` | `nu` | [nushell/vscode-nushell-lang](https://github.com/nushell/vscode-nushell-lang/blob/290cb5017fd431369dbe1b3a357ed5a62999f1e0/syntaxes/nushell.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/nushell/vscode-nushell-lang/main/LICENSE) | | 17.65 kB |
|
|
132
132
|
| `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 |
|
|
133
133
|
| `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 |
|
|
134
134
|
| `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 |
|
package/grammars/crystal.json
CHANGED
|
@@ -124,15 +124,20 @@
|
|
|
124
124
|
"name": "meta.lib.type.crystal"
|
|
125
125
|
},
|
|
126
126
|
{
|
|
127
|
-
"comment": "everything being a reserved word, not a value and needing a 'end' is a..",
|
|
127
|
+
"comment": "everything being a reserved word, not a value, and needing a 'end' is a..",
|
|
128
128
|
"match": "(?<!\\.)\\b(fun|begin|case|class|else|elsif|end|ensure|enum|for|if|macro|module|rescue|struct|then|union|unless|until|when|while)\\b(?![?!:])",
|
|
129
129
|
"name": "keyword.control.crystal"
|
|
130
130
|
},
|
|
131
131
|
{
|
|
132
|
-
"comment": "everything being a reserved word, not a value and not needing a 'end' is a..",
|
|
132
|
+
"comment": "everything being a reserved word, not a value, and not needing a 'end' is a..",
|
|
133
133
|
"match": "(?<!\\.)\\b(abstract|alias|asm|break|extend|in|include|next|of|private|protected|struct|return|select|super|with|yield)\\b(?![?!:])",
|
|
134
134
|
"name": "keyword.control.primary.crystal"
|
|
135
135
|
},
|
|
136
|
+
{
|
|
137
|
+
"comment": "everything being a spec keyword, not a value, and needing a block is a..",
|
|
138
|
+
"match": "(?<!\\.)\\b(describe|context|it|expect_raises)\\b(?![?!:])",
|
|
139
|
+
"name": "keyword.control.crystal"
|
|
140
|
+
},
|
|
136
141
|
{
|
|
137
142
|
"comment": "contextual smart pair support for block parameters",
|
|
138
143
|
"match": "(?<!\\.)\\bdo\\b\\s*",
|
|
@@ -1030,7 +1035,7 @@
|
|
|
1030
1035
|
"name": "comment.line.number-sign.crystal"
|
|
1031
1036
|
},
|
|
1032
1037
|
{
|
|
1033
|
-
"match": "\\b_([\\w]+[?!]?)",
|
|
1038
|
+
"match": "\\b_([\\w]+[?!]?)\\b(?!\\()",
|
|
1034
1039
|
"name": "comment.unused.crystal"
|
|
1035
1040
|
},
|
|
1036
1041
|
{
|
package/grammars/gdscript.json
CHANGED
|
@@ -154,6 +154,9 @@
|
|
|
154
154
|
{
|
|
155
155
|
"include": "#self"
|
|
156
156
|
},
|
|
157
|
+
{
|
|
158
|
+
"include": "#func"
|
|
159
|
+
},
|
|
157
160
|
{
|
|
158
161
|
"include": "#letter"
|
|
159
162
|
},
|
|
@@ -381,6 +384,10 @@
|
|
|
381
384
|
},
|
|
382
385
|
"match": "(extends)\\s+([a-zA-Z_]\\w*\\.[a-zA-Z_]\\w*)?"
|
|
383
386
|
},
|
|
387
|
+
"func": {
|
|
388
|
+
"match": "\\bfunc\\b",
|
|
389
|
+
"name": "keyword.language.gdscript"
|
|
390
|
+
},
|
|
384
391
|
"function_arguments": {
|
|
385
392
|
"begin": "(\\()",
|
|
386
393
|
"beginCaptures": {
|
|
@@ -929,6 +936,20 @@
|
|
|
929
936
|
"end": "$|;",
|
|
930
937
|
"name": "meta.variable.gdscript",
|
|
931
938
|
"patterns": [
|
|
939
|
+
{
|
|
940
|
+
"captures": {
|
|
941
|
+
"1": {
|
|
942
|
+
"name": "punctuation.separator.annotation.gdscript"
|
|
943
|
+
},
|
|
944
|
+
"2": {
|
|
945
|
+
"name": "keyword.language.gdscript storage.type.const.gdscript"
|
|
946
|
+
},
|
|
947
|
+
"3": {
|
|
948
|
+
"name": "entity.name.function.gdscript"
|
|
949
|
+
}
|
|
950
|
+
},
|
|
951
|
+
"match": "(:)?\\s*(set|get)\\s+=\\s+([a-zA-Z_]\\w*)"
|
|
952
|
+
},
|
|
932
953
|
{
|
|
933
954
|
"match": ":=|=(?!=)",
|
|
934
955
|
"name": "keyword.operator.assignment.gdscript"
|
package/grammars/nushell.json
CHANGED
|
@@ -152,6 +152,9 @@
|
|
|
152
152
|
"match": "('[^']*')\\s*(:)\\s*",
|
|
153
153
|
"name": "meta.record-entry.nushell"
|
|
154
154
|
},
|
|
155
|
+
{
|
|
156
|
+
"include": "#spread"
|
|
157
|
+
},
|
|
155
158
|
{
|
|
156
159
|
"include": "source.nushell"
|
|
157
160
|
}
|
|
@@ -229,6 +232,12 @@
|
|
|
229
232
|
"end": "(?=\\||\\)|\\}|;)|$",
|
|
230
233
|
"name": "meta.command.nushell",
|
|
231
234
|
"patterns": [
|
|
235
|
+
{
|
|
236
|
+
"include": "#parameters"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"include": "#spread"
|
|
240
|
+
},
|
|
232
241
|
{
|
|
233
242
|
"include": "#value"
|
|
234
243
|
}
|
|
@@ -494,7 +503,12 @@
|
|
|
494
503
|
"function-parameter": {
|
|
495
504
|
"patterns": [
|
|
496
505
|
{
|
|
497
|
-
"
|
|
506
|
+
"captures": {
|
|
507
|
+
"1": {
|
|
508
|
+
"name": "keyword.control.nushell"
|
|
509
|
+
}
|
|
510
|
+
},
|
|
511
|
+
"match": "(-{0,2}|\\.{3})[\\w-]+(?:\\((-[\\w?])\\))?",
|
|
498
512
|
"name": "variable.parameter.nushell"
|
|
499
513
|
},
|
|
500
514
|
{
|
|
@@ -611,7 +625,12 @@
|
|
|
611
625
|
"name": "keyword.control.nushell"
|
|
612
626
|
},
|
|
613
627
|
"parameters": {
|
|
614
|
-
"
|
|
628
|
+
"captures": {
|
|
629
|
+
"1": {
|
|
630
|
+
"name": "keyword.control.nushell"
|
|
631
|
+
}
|
|
632
|
+
},
|
|
633
|
+
"match": "(?<=\\s)(-{1,2})[\\w-]+",
|
|
615
634
|
"name": "variable.parameter.nushell"
|
|
616
635
|
},
|
|
617
636
|
"paren-expression": {
|
|
@@ -656,7 +675,11 @@
|
|
|
656
675
|
]
|
|
657
676
|
},
|
|
658
677
|
"ranges": {
|
|
659
|
-
"match": "
|
|
678
|
+
"match": "\\.\\.<?",
|
|
679
|
+
"name": "keyword.control.nushell"
|
|
680
|
+
},
|
|
681
|
+
"spread": {
|
|
682
|
+
"match": "\\.\\.\\.(?=[^\\s\\]}])",
|
|
660
683
|
"name": "keyword.control.nushell"
|
|
661
684
|
},
|
|
662
685
|
"string": {
|
|
@@ -804,15 +827,15 @@
|
|
|
804
827
|
},
|
|
805
828
|
"name": "meta.table.nushell",
|
|
806
829
|
"patterns": [
|
|
830
|
+
{
|
|
831
|
+
"include": "#spread"
|
|
832
|
+
},
|
|
807
833
|
{
|
|
808
834
|
"include": "#value"
|
|
809
835
|
},
|
|
810
836
|
{
|
|
811
837
|
"match": ",",
|
|
812
838
|
"name": "punctuation.separator.nushell"
|
|
813
|
-
},
|
|
814
|
-
{
|
|
815
|
-
"include": "#comment"
|
|
816
839
|
}
|
|
817
840
|
]
|
|
818
841
|
},
|
|
@@ -999,9 +1022,6 @@
|
|
|
999
1022
|
{
|
|
1000
1023
|
"include": "#table"
|
|
1001
1024
|
},
|
|
1002
|
-
{
|
|
1003
|
-
"include": "#parameters"
|
|
1004
|
-
},
|
|
1005
1025
|
{
|
|
1006
1026
|
"include": "#operators"
|
|
1007
1027
|
},
|
package/index.js
CHANGED
|
@@ -434,7 +434,7 @@ export const grammars = [
|
|
|
434
434
|
source: 'https://github.com/microsoft/vscode/blob/6ac83c7c7dda9f27ca1fe9d98675253e010b75d1/extensions/cpp/syntaxes/cpp.tmLanguage.json',
|
|
435
435
|
},
|
|
436
436
|
{
|
|
437
|
-
byteSize:
|
|
437
|
+
byteSize: 32352,
|
|
438
438
|
displayName: 'Crystal',
|
|
439
439
|
embedded: [
|
|
440
440
|
'html',
|
|
@@ -444,13 +444,13 @@ export const grammars = [
|
|
|
444
444
|
'javascript',
|
|
445
445
|
'shellscript',
|
|
446
446
|
],
|
|
447
|
-
lastUpdate: '
|
|
447
|
+
lastUpdate: '2024-02-20T17:46:33Z',
|
|
448
448
|
license: 'MIT',
|
|
449
449
|
licenseUrl: 'https://raw.githubusercontent.com/crystal-lang-tools/vscode-crystal-lang/master/LICENSE',
|
|
450
450
|
name: 'crystal',
|
|
451
451
|
scopeName: 'source.crystal',
|
|
452
|
-
sha: '
|
|
453
|
-
source: 'https://github.com/crystal-lang-tools/vscode-crystal-lang/blob/
|
|
452
|
+
sha: '592999d041bdc59b0127dee68bd225330eb9bc41',
|
|
453
|
+
source: 'https://github.com/crystal-lang-tools/vscode-crystal-lang/blob/592999d041bdc59b0127dee68bd225330eb9bc41/syntaxes/crystal.json',
|
|
454
454
|
},
|
|
455
455
|
{
|
|
456
456
|
aliases: [
|
|
@@ -740,15 +740,15 @@ export const grammars = [
|
|
|
740
740
|
source: 'https://github.com/godotengine/godot-vscode-plugin/blob/e7e2d0439dea0fb3a568378554c81e0a17348a84/syntaxes/GDResource.tmLanguage.json',
|
|
741
741
|
},
|
|
742
742
|
{
|
|
743
|
-
byteSize:
|
|
743
|
+
byteSize: 16475,
|
|
744
744
|
displayName: 'GDScript',
|
|
745
|
-
lastUpdate: '2024-
|
|
745
|
+
lastUpdate: '2024-02-21T20:07:05Z',
|
|
746
746
|
license: 'MIT',
|
|
747
747
|
licenseUrl: 'https://raw.githubusercontent.com/godotengine/godot-vscode-plugin/master/LICENSE',
|
|
748
748
|
name: 'gdscript',
|
|
749
749
|
scopeName: 'source.gdscript',
|
|
750
|
-
sha: '
|
|
751
|
-
source: 'https://github.com/godotengine/godot-vscode-plugin/blob/
|
|
750
|
+
sha: '0c9c2554fb6eb25d8e30fa32cc31d1eba0941bba',
|
|
751
|
+
source: 'https://github.com/godotengine/godot-vscode-plugin/blob/0c9c2554fb6eb25d8e30fa32cc31d1eba0941bba/syntaxes/GDScript.tmLanguage.json',
|
|
752
752
|
},
|
|
753
753
|
{
|
|
754
754
|
byteSize: 6096,
|
|
@@ -1765,15 +1765,15 @@ export const grammars = [
|
|
|
1765
1765
|
aliases: [
|
|
1766
1766
|
'nu',
|
|
1767
1767
|
],
|
|
1768
|
-
byteSize:
|
|
1768
|
+
byteSize: 18070,
|
|
1769
1769
|
displayName: 'nushell',
|
|
1770
|
-
lastUpdate: '
|
|
1770
|
+
lastUpdate: '2024-02-21T15:06:50Z',
|
|
1771
1771
|
license: 'MIT',
|
|
1772
1772
|
licenseUrl: 'https://raw.githubusercontent.com/nushell/vscode-nushell-lang/main/LICENSE',
|
|
1773
1773
|
name: 'nushell',
|
|
1774
1774
|
scopeName: 'source.nushell',
|
|
1775
|
-
sha: '
|
|
1776
|
-
source: 'https://github.com/nushell/vscode-nushell-lang/blob/
|
|
1775
|
+
sha: '290cb5017fd431369dbe1b3a357ed5a62999f1e0',
|
|
1776
|
+
source: 'https://github.com/nushell/vscode-nushell-lang/blob/290cb5017fd431369dbe1b3a357ed5a62999f1e0/syntaxes/nushell.tmLanguage.json',
|
|
1777
1777
|
},
|
|
1778
1778
|
{
|
|
1779
1779
|
aliases: [
|
package/package.json
CHANGED