tm-grammars 1.4.1 → 1.4.3
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/gdscript.json +21 -0
- package/grammars/nushell.json +29 -9
- package/grammars/terraform.json +5 -1
- package/index.js +12 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -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 |
|
|
@@ -176,7 +176,7 @@ import { grammars } from 'tm-grammars'
|
|
|
176
176
|
| `system-verilog` | | [mshr-h/vscode-verilog-hdl-support](https://github.com/mshr-h/vscode-verilog-hdl-support/blob/dca87637e8789563ec5315794fdc5ef8ce498264/syntaxes/systemverilog.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/mshr-h/vscode-verilog-hdl-support/main/LICENSE) | | 18.47 kB |
|
|
177
177
|
| `tasl` | | [underlay/vscode-tasl](https://github.com/underlay/vscode-tasl/blob/dde4b7c0b762c2e667584095362dd49ebfacece7/syntaxes/tasl.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/underlay/vscode-tasl/main/LICENSE) | | 3.21 kB |
|
|
178
178
|
| `tcl` | | [sleutho/tcl](https://github.com/sleutho/tcl/blob/f18820ad14678bc033f0a35524820c90fe50f18b/syntaxes/tcl.tmLanguage) | | | 4.66 kB |
|
|
179
|
-
| `terraform` | `tf` `tfvars` | [hashicorp/syntax](https://github.com/hashicorp/syntax/blob/
|
|
179
|
+
| `terraform` | `tf` `tfvars` | [hashicorp/syntax](https://github.com/hashicorp/syntax/blob/b8a932a994816a3bcc96c547e1c2db763e46a2de/syntaxes/terraform.tmGrammar.json) | [MPL-2.0](https://raw.githubusercontent.com/hashicorp/syntax/main/LICENSE) | | 12.49 kB |
|
|
180
180
|
| `tex` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/3c86ede5f554f6e196c832394e126b291a1de606/extensions/latex/syntaxes/TeX.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `r` | 7.85 kB |
|
|
181
181
|
| `toml` | | [textmate/toml.tmbundle](https://github.com/textmate/toml.tmbundle/blob/e82b64c1e86396220786846201e9aa3f0a2d9ca2/Syntaxes/TOML.tmLanguage) | | | 6.26 kB |
|
|
182
182
|
| `tsx` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/35d97bc7e439fce0f50f42074041ab2d8571b20a/extensions/typescript-basics/syntaxes/TypeScriptReact.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 171.16 kB |
|
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/grammars/terraform.json
CHANGED
|
@@ -282,13 +282,17 @@
|
|
|
282
282
|
]
|
|
283
283
|
},
|
|
284
284
|
"functions": {
|
|
285
|
-
"begin": "(
|
|
285
|
+
"begin": "([:\\-\\w]+)(\\()",
|
|
286
286
|
"beginCaptures": {
|
|
287
287
|
"1": {
|
|
288
288
|
"patterns": [
|
|
289
289
|
{
|
|
290
290
|
"match": "\\b(abs|abspath|alltrue|anytrue|base64decode|base64encode|base64gzip|base64sha256|base64sha512|basename|bcrypt|can|ceil|chomp|chunklist|cidrhost|cidrnetmask|cidrsubnet|cidrsubnets|coalesce|coalescelist|compact|concat|contains|csvdecode|dirname|distinct|element|endswith|file|filebase64|filebase64sha256|filebase64sha512|fileexists|filemd5|fileset|filesha1|filesha256|filesha512|flatten|floor|format|formatdate|formatlist|indent|index|join|jsondecode|jsonencode|keys|length|log|lookup|lower|matchkeys|max|md5|merge|min|nonsensitive|one|parseint|pathexpand|plantimestamp|pow|range|regex|regexall|replace|reverse|rsadecrypt|sensitive|setintersection|setproduct|setsubtract|setunion|sha1|sha256|sha512|signum|slice|sort|split|startswith|strcontains|strrev|substr|sum|templatefile|textdecodebase64|textencodebase64|timeadd|timecmp|timestamp|title|tobool|tolist|tomap|tonumber|toset|tostring|transpose|trim|trimprefix|trimspace|trimsuffix|try|upper|urlencode|uuid|uuidv5|values|yamldecode|yamlencode|zipmap)\\b",
|
|
291
291
|
"name": "support.function.builtin.terraform"
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"match": "\\bprovider::[[:alpha:]][\\w_-]*::[[:alpha:]][\\w_-]*\\b",
|
|
295
|
+
"name": "support.function.provider"
|
|
292
296
|
}
|
|
293
297
|
]
|
|
294
298
|
},
|
package/index.js
CHANGED
|
@@ -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: [
|
|
@@ -2482,15 +2482,15 @@ export const grammars = [
|
|
|
2482
2482
|
'tf',
|
|
2483
2483
|
'tfvars',
|
|
2484
2484
|
],
|
|
2485
|
-
byteSize:
|
|
2485
|
+
byteSize: 12793,
|
|
2486
2486
|
displayName: 'Terraform',
|
|
2487
|
-
lastUpdate: '
|
|
2487
|
+
lastUpdate: '2024-02-22T10:39:06Z',
|
|
2488
2488
|
license: 'MPL-2.0',
|
|
2489
2489
|
licenseUrl: 'https://raw.githubusercontent.com/hashicorp/syntax/main/LICENSE',
|
|
2490
2490
|
name: 'terraform',
|
|
2491
2491
|
scopeName: 'source.hcl.terraform',
|
|
2492
|
-
sha: '
|
|
2493
|
-
source: 'https://github.com/hashicorp/syntax/blob/
|
|
2492
|
+
sha: 'b8a932a994816a3bcc96c547e1c2db763e46a2de',
|
|
2493
|
+
source: 'https://github.com/hashicorp/syntax/blob/b8a932a994816a3bcc96c547e1c2db763e46a2de/syntaxes/terraform.tmGrammar.json',
|
|
2494
2494
|
},
|
|
2495
2495
|
{
|
|
2496
2496
|
byteSize: 8039,
|
package/package.json
CHANGED