tm-grammars 1.12.11 → 1.13.0
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/NOTICE +95 -0
- package/README.md +4 -1
- package/grammars/edge.json +146 -0
- package/grammars/gdscript.json +81 -23
- package/grammars/luau.json +772 -0
- package/grammars/templ.json +1111 -0
- package/index.js +50 -4
- package/package.json +1 -1
package/NOTICE
CHANGED
|
@@ -2207,6 +2207,21 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
2207
2207
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
2208
2208
|
SOFTWARE.
|
|
2209
2209
|
|
|
2210
|
+
=========================================================================================================
|
|
2211
|
+
Files: edge.json
|
|
2212
|
+
License: https://raw.githubusercontent.com/edge-js/edge-vscode/main/LICENSE.md
|
|
2213
|
+
SPDX: MIT
|
|
2214
|
+
---------------------------------------------------------------------------------------------------------
|
|
2215
|
+
# The MIT License
|
|
2216
|
+
|
|
2217
|
+
Copyright 2022 Harminder Virk, contributors
|
|
2218
|
+
|
|
2219
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
2220
|
+
|
|
2221
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
2222
|
+
|
|
2223
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
2224
|
+
|
|
2210
2225
|
=========================================================================================================
|
|
2211
2226
|
Files: elixir.json
|
|
2212
2227
|
License: https://raw.githubusercontent.com/elixir-editors/elixir-tmbundle/master/LICENSE
|
|
@@ -4588,6 +4603,59 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
4588
4603
|
SOFTWARE.
|
|
4589
4604
|
|
|
4590
4605
|
|
|
4606
|
+
=========================================================================================================
|
|
4607
|
+
Files: luau.json
|
|
4608
|
+
License: https://raw.githubusercontent.com/JohnnyMorganz/Luau.tmLanguage/main/LICENSE.md
|
|
4609
|
+
SPDX: NOASSERTION
|
|
4610
|
+
---------------------------------------------------------------------------------------------------------
|
|
4611
|
+
Copyright (c) JohnnyMorganz
|
|
4612
|
+
All rights reserved.
|
|
4613
|
+
|
|
4614
|
+
MIT License
|
|
4615
|
+
|
|
4616
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4617
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
4618
|
+
in the Software without restriction, including without limitation the rights
|
|
4619
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
4620
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
4621
|
+
furnished to do so, subject to the following conditions:
|
|
4622
|
+
|
|
4623
|
+
The above copyright notice and this permission notice shall be included in
|
|
4624
|
+
all copies or substantial portions of the Software.
|
|
4625
|
+
|
|
4626
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
4627
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
4628
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
4629
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
4630
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
4631
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
4632
|
+
THE SOFTWARE.
|
|
4633
|
+
|
|
4634
|
+
===
|
|
4635
|
+
|
|
4636
|
+
Copyright (c) Microsoft Corporation
|
|
4637
|
+
All rights reserved.
|
|
4638
|
+
|
|
4639
|
+
MIT License
|
|
4640
|
+
|
|
4641
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4642
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
4643
|
+
in the Software without restriction, including without limitation the rights
|
|
4644
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
4645
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
4646
|
+
furnished to do so, subject to the following conditions:
|
|
4647
|
+
|
|
4648
|
+
The above copyright notice and this permission notice shall be included in
|
|
4649
|
+
all copies or substantial portions of the Software.
|
|
4650
|
+
|
|
4651
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
4652
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
4653
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
4654
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
4655
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
4656
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
4657
|
+
THE SOFTWARE.
|
|
4658
|
+
|
|
4591
4659
|
=========================================================================================================
|
|
4592
4660
|
Files: markdown-vue.json, vue.json, vue-directives.json, vue-interpolations.json, vue-sfc-style-variable-injection.json
|
|
4593
4661
|
License: https://raw.githubusercontent.com/vuejs/language-tools/master/LICENSE
|
|
@@ -7630,6 +7698,33 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
7630
7698
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
7631
7699
|
SOFTWARE.
|
|
7632
7700
|
|
|
7701
|
+
=========================================================================================================
|
|
7702
|
+
Files: templ.json
|
|
7703
|
+
License: https://raw.githubusercontent.com/templ-go/templ-vscode/main/LICENSE
|
|
7704
|
+
SPDX: MIT
|
|
7705
|
+
---------------------------------------------------------------------------------------------------------
|
|
7706
|
+
MIT License
|
|
7707
|
+
|
|
7708
|
+
Copyright (c) 2023 Adrian Hesketh
|
|
7709
|
+
|
|
7710
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7711
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7712
|
+
in the Software without restriction, including without limitation the rights
|
|
7713
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7714
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
7715
|
+
furnished to do so, subject to the following conditions:
|
|
7716
|
+
|
|
7717
|
+
The above copyright notice and this permission notice shall be included in all
|
|
7718
|
+
copies or substantial portions of the Software.
|
|
7719
|
+
|
|
7720
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
7721
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
7722
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
7723
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
7724
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
7725
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
7726
|
+
SOFTWARE.
|
|
7727
|
+
|
|
7633
7728
|
=========================================================================================================
|
|
7634
7729
|
Files: twig.json
|
|
7635
7730
|
License: https://raw.githubusercontent.com/mblode/vscode-twig-language-2/master/LICENSE.md
|
package/README.md
CHANGED
|
@@ -65,6 +65,7 @@ import { grammars } from 'tm-grammars'
|
|
|
65
65
|
| `diff` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/4549bd26c7b799284e0ebd8dc1e0310e6a8707a1/extensions/diff/syntaxes/diff.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 2.45 kB |
|
|
66
66
|
| `docker` | `dockerfile` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/8fdf170a0850c1cc027382f31650aaf300d3ae2a/extensions/docker/syntaxes/docker.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 1.51 kB |
|
|
67
67
|
| `dream-maker` | | [gbasood/vscode-atomic-dreams](https://github.com/gbasood/vscode-atomic-dreams/blob/22d2bf0325f65697ea542856280f66e9e098f4a2/syntaxes/dm.tmLanguage.json) | | | 9.99 kB |
|
|
68
|
+
| `edge` | | [edge-js/edge-vscode](https://github.com/edge-js/edge-vscode/blob/04352c41981ca664598674556afa63bd393a10f3/syntaxes/edge.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/edge-js/edge-vscode/main/LICENSE.md) | `typescript` `html` `html-derivative` | 1.97 kB |
|
|
68
69
|
| `elixir` | | [elixir-editors/elixir-tmbundle](https://github.com/elixir-editors/elixir-tmbundle/blob/43c8cd957d5ac6e1abbd8730fc7a08c81a6e76c9/Syntaxes/Elixir.tmLanguage) | [NOASSERTION](https://raw.githubusercontent.com/elixir-editors/elixir-tmbundle/master/LICENSE) | `html` | 16.96 kB |
|
|
69
70
|
| `elm` | | [elm-tooling/elm-language-client-vscode](https://github.com/elm-tooling/elm-language-client-vscode/blob/c70351314682c2e0fae8a402ebb301da79821c37/syntaxes/elm-syntax.json) | [MIT](https://raw.githubusercontent.com/elm-tooling/elm-language-client-vscode/main/LICENSE) | `glsl` | 10.51 kB |
|
|
70
71
|
| `emacs-lisp` | `elisp` | [Alhadis/language-emacs-lisp](https://github.com/Alhadis/language-emacs-lisp/blob/07ef9e419b80478a0976acbc6ef9d190b07e508e/grammars/emacs-lisp.cson) | [ISC](https://raw.githubusercontent.com/Alhadis/language-emacs-lisp/master/LICENSE.md) | | 795.71 kB |
|
|
@@ -77,7 +78,7 @@ import { grammars } from 'tm-grammars'
|
|
|
77
78
|
| `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 |
|
|
78
79
|
| `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 |
|
|
79
80
|
| `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 |
|
|
80
|
-
| `gdscript` | | [godotengine/godot-vscode-plugin](https://github.com/godotengine/godot-vscode-plugin/blob/
|
|
81
|
+
| `gdscript` | | [godotengine/godot-vscode-plugin](https://github.com/godotengine/godot-vscode-plugin/blob/c07fe37f30c33bc0e99629c24ffb0e8d346eca5e/syntaxes/GDScript.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/godotengine/godot-vscode-plugin/master/LICENSE) | | 17.21 kB |
|
|
81
82
|
| `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 |
|
|
82
83
|
| `genie` | | [vala-lang/vala-vscode](https://github.com/vala-lang/vala-vscode/blob/8f825e95648326df2572d0522632251cdff4a43b/syntaxes/genie.YAML-tmLanguage) | [MIT](https://raw.githubusercontent.com/vala-lang/vala-vscode/master/LICENSE) | | 3.12 kB |
|
|
83
84
|
| `gherkin` | | [alexkrechik/VSCucumberAutoComplete](https://github.com/alexkrechik/VSCucumberAutoComplete/blob/fbb554addf81e8961b58b1577924af10fecf9694/syntaxes/feature.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/alexkrechik/VSCucumberAutoComplete/master/LICENSE) | | 12.13 kB |
|
|
@@ -126,6 +127,7 @@ import { grammars } from 'tm-grammars'
|
|
|
126
127
|
| `log` | | [emilast/vscode-logfile-highlighter](https://github.com/emilast/vscode-logfile-highlighter/blob/eb50e785c27b4b4f7dbf6c0e801c58fe91baef5d/syntaxes/log.tmLanguage) | [MIT](https://raw.githubusercontent.com/emilast/vscode-logfile-highlighter/master/LICENSE) | | 2.51 kB |
|
|
127
128
|
| `logo` | | [textmate/logo.tmbundle](https://github.com/textmate/logo.tmbundle/blob/3205e987ed2a2aa11accdd55a7d094832441f89c/Syntaxes/Logo.tmLanguage) | | | 3.03 kB |
|
|
128
129
|
| `lua` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/5c213a1e84928c7a7d11ca5b282ca602d40c1352/extensions/lua/syntaxes/lua.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `c` | 14.41 kB |
|
|
130
|
+
| `luau` | | [JohnnyMorganz/Luau.tmLanguage](https://github.com/JohnnyMorganz/Luau.tmLanguage/blob/5febad569516f7a3a587b59389fc2cdc40bff972/Luau.tmLanguage) | [NOASSERTION](https://raw.githubusercontent.com/JohnnyMorganz/Luau.tmLanguage/main/LICENSE.md) | | 12.01 kB |
|
|
129
131
|
| `make` | `makefile` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/91db8ea85fee30ebb3c7a5e7939aa2a8d79811c5/extensions/make/syntaxes/make.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 8.45 kB |
|
|
130
132
|
| `markdown` | `md` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/6b0a582e595fab7da09fcd267f4f8248e7ec437e/extensions/markdown-basics/syntaxes/markdown.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `css` `html` `ini` `java` `lua` `make` `perl` `r` `ruby` `php` `sql` `vb` `xml` `xsl` `yaml` `bat` `clojure` `coffee` `c` `cpp` `diff` `docker` `git-commit` `git-rebase` `go` `groovy` `pug` `javascript` `json` `jsonc` `less` `objective-c` `swift` `scss` `raku` `powershell` `python` `julia` `rust` `scala` `shellscript` `typescript` `tsx` `csharp` `fsharp` `dart` `handlebars` `log` `erlang` `elixir` `latex` `bibtex` `html-derivative` | 52.58 kB |
|
|
131
133
|
| `marko` | | [marko-js/marko-tmbundle](https://github.com/marko-js/marko-tmbundle/blob/dd3a0c39e656bedd276d3bcbdea92a2d627755c7/Syntaxes/marko.tmLanguage) | [MIT](https://raw.githubusercontent.com/marko-js/marko-tmbundle/master/LICENSE) | `css` `less` `scss` `javascript` | 18.31 kB |
|
|
@@ -196,6 +198,7 @@ import { grammars } from 'tm-grammars'
|
|
|
196
198
|
| `systemd` | | [hangxingliu/vscode-systemd](https://github.com/hangxingliu/vscode-systemd/blob/bb87cf9d8f7f9da36fbc5bf80683062b2558ed80/src/syntax/systemd.tmLanguage) | [MIT](https://raw.githubusercontent.com/hangxingliu/vscode-systemd/main/LICENSE) | | 7.44 kB |
|
|
197
199
|
| `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 |
|
|
198
200
|
| `tcl` | | [sleutho/tcl](https://github.com/sleutho/tcl/blob/f18820ad14678bc033f0a35524820c90fe50f18b/syntaxes/tcl.tmLanguage) | | | 4.66 kB |
|
|
201
|
+
| `templ` | | [templ-go/templ-vscode](https://github.com/templ-go/templ-vscode/blob/4f85ade86dba0ecabd80fe6e845653a0a4aed5bf/syntaxes/templ.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/templ-go/templ-vscode/main/LICENSE) | `go` `javascript` `css` | 22.70 kB |
|
|
199
202
|
| `terraform` | `tf` `tfvars` | [hashicorp/syntax](https://github.com/hashicorp/syntax/blob/c693badea4d460d1c05b8d2ab0c88bad143da3f1/syntaxes/terraform.tmGrammar.json) | [MPL-2.0](https://raw.githubusercontent.com/hashicorp/syntax/main/LICENSE) | | 12.58 kB |
|
|
200
203
|
| `tex` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/b8e3432a0b7dd11ffd0c832fad6a6c51e809013c/extensions/latex/syntaxes/TeX.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `r` | 8.77 kB |
|
|
201
204
|
| `toml` | | [textmate/toml.tmbundle](https://github.com/textmate/toml.tmbundle/blob/e82b64c1e86396220786846201e9aa3f0a2d9ca2/Syntaxes/TOML.tmLanguage) | | | 6.26 kB |
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
{
|
|
2
|
+
"displayName": "Edge",
|
|
3
|
+
"injections": {
|
|
4
|
+
"text.html.edge - (meta.embedded | meta.tag | comment.block.edge), L:(text.html.edge meta.tag - (comment.block.edge | meta.embedded.block.edge)), L:(source.ts.embedded.html - (comment.block.edge | meta.embedded.block.edge))": {
|
|
5
|
+
"patterns": [
|
|
6
|
+
{
|
|
7
|
+
"include": "#comment"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"include": "#escapedMustache"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"include": "#safeMustache"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"include": "#mustache"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"include": "#nonSeekableTag"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"include": "#tag"
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"name": "edge",
|
|
28
|
+
"patterns": [
|
|
29
|
+
{
|
|
30
|
+
"include": "text.html.basic"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"include": "text.html.derivative"
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"repository": {
|
|
37
|
+
"comment": {
|
|
38
|
+
"begin": "\\{{--",
|
|
39
|
+
"beginCaptures": {
|
|
40
|
+
"0": {
|
|
41
|
+
"name": "punctuation.definition.comment.begin.edge"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"end": "\\--}}",
|
|
45
|
+
"endCaptures": {
|
|
46
|
+
"0": {
|
|
47
|
+
"name": "punctuation.definition.comment.end.edge"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"name": "comment.block"
|
|
51
|
+
},
|
|
52
|
+
"escapedMustache": {
|
|
53
|
+
"begin": "\\@{{",
|
|
54
|
+
"beginCaptures": {
|
|
55
|
+
"0": {
|
|
56
|
+
"name": "punctuation.definition.comment.begin.edge"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"end": "\\}}",
|
|
60
|
+
"endCaptures": {
|
|
61
|
+
"0": {
|
|
62
|
+
"name": "punctuation.definition.comment.end.edge"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"name": "comment.block"
|
|
66
|
+
},
|
|
67
|
+
"mustache": {
|
|
68
|
+
"begin": "\\{{",
|
|
69
|
+
"beginCaptures": {
|
|
70
|
+
"0": {
|
|
71
|
+
"name": "punctuation.mustache.begin"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"end": "\\}}",
|
|
75
|
+
"endCaptures": {
|
|
76
|
+
"0": {
|
|
77
|
+
"name": "punctuation.mustache.end"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"name": "meta.embedded.block.javascript",
|
|
81
|
+
"patterns": [
|
|
82
|
+
{
|
|
83
|
+
"include": "source.ts#expression"
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
"nonSeekableTag": {
|
|
88
|
+
"captures": {
|
|
89
|
+
"2": {
|
|
90
|
+
"name": "support.function.edge"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"match": "^(\\s*)((@{1,2})(!)?([a-zA-Z._]+))(~)?$",
|
|
94
|
+
"name": "meta.embedded.block.javascript",
|
|
95
|
+
"patterns": [
|
|
96
|
+
{
|
|
97
|
+
"include": "source.ts#expression"
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
},
|
|
101
|
+
"safeMustache": {
|
|
102
|
+
"begin": "\\{{{",
|
|
103
|
+
"beginCaptures": {
|
|
104
|
+
"0": {
|
|
105
|
+
"name": "punctuation.mustache.begin"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"end": "\\}}}",
|
|
109
|
+
"endCaptures": {
|
|
110
|
+
"0": {
|
|
111
|
+
"name": "punctuation.mustache.end"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"name": "meta.embedded.block.javascript",
|
|
115
|
+
"patterns": [
|
|
116
|
+
{
|
|
117
|
+
"include": "source.ts#expression"
|
|
118
|
+
}
|
|
119
|
+
]
|
|
120
|
+
},
|
|
121
|
+
"tag": {
|
|
122
|
+
"begin": "^(\\s*)((@{1,2})(!)?([a-zA-Z._]+)(\\s{0,2}))(\\()",
|
|
123
|
+
"beginCaptures": {
|
|
124
|
+
"2": {
|
|
125
|
+
"name": "support.function.edge"
|
|
126
|
+
},
|
|
127
|
+
"7": {
|
|
128
|
+
"name": "punctuation.paren.open"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"end": "\\)",
|
|
132
|
+
"endCaptures": {
|
|
133
|
+
"0": {
|
|
134
|
+
"name": "punctuation.paren.close"
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"name": "meta.embedded.block.javascript",
|
|
138
|
+
"patterns": [
|
|
139
|
+
{
|
|
140
|
+
"include": "source.ts#expression"
|
|
141
|
+
}
|
|
142
|
+
]
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"scopeName": "text.html.edge"
|
|
146
|
+
}
|
package/grammars/gdscript.json
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"name": "punctuation.separator.annotation.gdscript"
|
|
24
24
|
},
|
|
25
25
|
"3": {
|
|
26
|
-
"name": "entity.name.type.class.
|
|
26
|
+
"name": "entity.name.type.class.gdscript"
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"end": "(,)|(?=\\))",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"name": "variable.other.gdscript"
|
|
77
77
|
},
|
|
78
78
|
"arithmetic_operator": {
|
|
79
|
-
"match": "
|
|
79
|
+
"match": "->|\\+=|-=|\\*=|\\^=|/=|%=|&=|~=|\\|=|\\*\\*|\\*|/|%|\\+|-",
|
|
80
80
|
"name": "keyword.operator.arithmetic.gdscript"
|
|
81
81
|
},
|
|
82
82
|
"assignment_operator": {
|
|
@@ -98,19 +98,16 @@
|
|
|
98
98
|
"include": "#strings"
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
|
-
"include": "#
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
"include": "#keywords"
|
|
101
|
+
"include": "#builtin_classes"
|
|
105
102
|
},
|
|
106
103
|
{
|
|
107
|
-
"include": "#
|
|
104
|
+
"include": "#const_vars"
|
|
108
105
|
},
|
|
109
106
|
{
|
|
110
|
-
"include": "#
|
|
107
|
+
"include": "#keywords"
|
|
111
108
|
},
|
|
112
109
|
{
|
|
113
|
-
"include": "#
|
|
110
|
+
"include": "#operators"
|
|
114
111
|
},
|
|
115
112
|
{
|
|
116
113
|
"include": "#lambda_declaration"
|
|
@@ -163,9 +160,6 @@
|
|
|
163
160
|
{
|
|
164
161
|
"include": "#numbers"
|
|
165
162
|
},
|
|
166
|
-
{
|
|
167
|
-
"include": "#builtin_classes"
|
|
168
|
-
},
|
|
169
163
|
{
|
|
170
164
|
"include": "#pascal_case_class"
|
|
171
165
|
},
|
|
@@ -174,6 +168,14 @@
|
|
|
174
168
|
}
|
|
175
169
|
]
|
|
176
170
|
},
|
|
171
|
+
"bitwise_operator": {
|
|
172
|
+
"match": "&|\\||<<=|>>=|<<|>>|\\^|~",
|
|
173
|
+
"name": "keyword.operator.bitwise.gdscript"
|
|
174
|
+
},
|
|
175
|
+
"boolean_operator": {
|
|
176
|
+
"match": "(&&|\\|\\|)",
|
|
177
|
+
"name": "keyword.operator.boolean.gdscript"
|
|
178
|
+
},
|
|
177
179
|
"builtin_classes": {
|
|
178
180
|
"match": "(?<![^.]\\.|:)\\b(OS|GDScript|Vector2|Vector2i|Vector3|Vector3i|Color|Rect2|Rect2i|Array|Basis|Dictionary|Plane|Quat|RID|Rect3|Transform|Transform2D|Transform3D|AABB|String|Color|NodePath|Object|PoolByteArray|PoolIntArray|PoolRealArray|PoolStringArray|PoolVector2Array|PoolVector3Array|PoolColorArray|bool|int|float|StringName|Quaternion|PackedByteArray|PackedInt32Array|PackedInt64Array|PackedFloat32Array|PackedFloat64Array|PackedStringArray|PackedVector2Array|PackedVector2iArray|PackedVector3Array|PackedVector3iArray|PackedColorArray|super)\\b",
|
|
179
181
|
"name": "entity.name.type.class.builtin.gdscript"
|
|
@@ -318,11 +320,11 @@
|
|
|
318
320
|
"name": "punctuation.definition.comment.number-sign.gdscript"
|
|
319
321
|
}
|
|
320
322
|
},
|
|
321
|
-
"match": "(
|
|
323
|
+
"match": "(##|#).*$\\n?",
|
|
322
324
|
"name": "comment.line.number-sign.gdscript"
|
|
323
325
|
},
|
|
324
326
|
"compare_operator": {
|
|
325
|
-
"match": "
|
|
327
|
+
"match": "<=|>=|==|<|>|!=|!",
|
|
326
328
|
"name": "keyword.operator.comparison.gdscript"
|
|
327
329
|
},
|
|
328
330
|
"const_vars": {
|
|
@@ -330,7 +332,7 @@
|
|
|
330
332
|
"name": "constant.language.gdscript"
|
|
331
333
|
},
|
|
332
334
|
"control_flow": {
|
|
333
|
-
"match": "\\b(?:if|elif|else|while|break|continue|pass|return|match|yield|await)\\b",
|
|
335
|
+
"match": "\\b(?:if|elif|else|while|break|continue|pass|return|match|when|yield|await)\\b",
|
|
334
336
|
"name": "keyword.control.gdscript"
|
|
335
337
|
},
|
|
336
338
|
"expression": {
|
|
@@ -580,7 +582,7 @@
|
|
|
580
582
|
]
|
|
581
583
|
},
|
|
582
584
|
"keywords": {
|
|
583
|
-
"match": "\\b(?:class|class_name|is|onready|tool|static|export|as|void|enum|preload|assert|breakpoint|
|
|
585
|
+
"match": "\\b(?:class|class_name|is|onready|tool|static|export|as|void|enum|preload|assert|breakpoint|sync|remote|master|puppet|slave|remotesync|mastersync|puppetsync|trait|namespace)\\b",
|
|
584
586
|
"name": "keyword.language.gdscript"
|
|
585
587
|
},
|
|
586
588
|
"lambda_declaration": {
|
|
@@ -658,10 +660,6 @@
|
|
|
658
660
|
}
|
|
659
661
|
]
|
|
660
662
|
},
|
|
661
|
-
"logic_operator": {
|
|
662
|
-
"match": "\\b(and|or|not|!)\\b",
|
|
663
|
-
"name": "keyword.operator.wordlike.gdscript"
|
|
664
|
-
},
|
|
665
663
|
"loose_default": {
|
|
666
664
|
"begin": "(=)",
|
|
667
665
|
"beginCaptures": {
|
|
@@ -762,6 +760,25 @@
|
|
|
762
760
|
}
|
|
763
761
|
]
|
|
764
762
|
},
|
|
763
|
+
"operators": {
|
|
764
|
+
"patterns": [
|
|
765
|
+
{
|
|
766
|
+
"include": "#wordlike_operator"
|
|
767
|
+
},
|
|
768
|
+
{
|
|
769
|
+
"include": "#boolean_operator"
|
|
770
|
+
},
|
|
771
|
+
{
|
|
772
|
+
"include": "#arithmetic_operator"
|
|
773
|
+
},
|
|
774
|
+
{
|
|
775
|
+
"include": "#bitwise_operator"
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
"include": "#compare_operator"
|
|
779
|
+
}
|
|
780
|
+
]
|
|
781
|
+
},
|
|
765
782
|
"parameters": {
|
|
766
783
|
"begin": "(\\()",
|
|
767
784
|
"beginCaptures": {
|
|
@@ -800,7 +817,7 @@
|
|
|
800
817
|
]
|
|
801
818
|
},
|
|
802
819
|
"pascal_case_class": {
|
|
803
|
-
"match": "\\b([A-Z][a-z_0-9]*([A-Z]?[a-z_0-9]+)*[A-Z]?)\\b",
|
|
820
|
+
"match": "\\b([A-Z]+[a-z_0-9]*([A-Z]?[a-z_0-9]+)*[A-Z]?)\\b",
|
|
804
821
|
"name": "entity.name.type.class.gdscript"
|
|
805
822
|
},
|
|
806
823
|
"round_braces": {
|
|
@@ -889,7 +906,41 @@
|
|
|
889
906
|
}
|
|
890
907
|
]
|
|
891
908
|
},
|
|
892
|
-
"
|
|
909
|
+
"string_bracket_placeholders": {
|
|
910
|
+
"patterns": [
|
|
911
|
+
{
|
|
912
|
+
"captures": {
|
|
913
|
+
"1": {
|
|
914
|
+
"name": "constant.character.format.placeholder.other.gdscript"
|
|
915
|
+
},
|
|
916
|
+
"3": {
|
|
917
|
+
"name": "storage.type.format.gdscript"
|
|
918
|
+
},
|
|
919
|
+
"4": {
|
|
920
|
+
"name": "storage.type.format.gdscript"
|
|
921
|
+
}
|
|
922
|
+
},
|
|
923
|
+
"match": "(?x)\n(\n{{ | }}\n| (?:\n{\n\\w* (\\.[[:alpha:]_]\\w* | \\[[^\\]'\"]+\\])*\n(![rsa])?\n( : \\w? [<>=^]? [-+ ]? \\#?\n\\d* ,? (\\.\\d+)? [bcdeEfFgGnosxX%]? )?\n})\n)\n",
|
|
924
|
+
"name": "meta.format.brace.gdscript"
|
|
925
|
+
},
|
|
926
|
+
{
|
|
927
|
+
"captures": {
|
|
928
|
+
"1": {
|
|
929
|
+
"name": "constant.character.format.placeholder.other.gdscript"
|
|
930
|
+
},
|
|
931
|
+
"3": {
|
|
932
|
+
"name": "storage.type.format.gdscript"
|
|
933
|
+
},
|
|
934
|
+
"4": {
|
|
935
|
+
"name": "storage.type.format.gdscript"
|
|
936
|
+
}
|
|
937
|
+
},
|
|
938
|
+
"match": "(?x)\n(\n{\n\\w* (\\.[[:alpha:]_]\\w* | \\[[^\\]'\"]+\\])*\n(![rsa])?\n(:)\n[^'\"{}\\n]* (?:\n\\{ [^'\"}\\n]*? \\} [^'\"{}\\n]*\n)*\n}\n)\n",
|
|
939
|
+
"name": "meta.format.brace.gdscript"
|
|
940
|
+
}
|
|
941
|
+
]
|
|
942
|
+
},
|
|
943
|
+
"string_percent_placeholders": {
|
|
893
944
|
"captures": {
|
|
894
945
|
"1": {
|
|
895
946
|
"name": "constant.character.format.placeholder.other.gdscript"
|
|
@@ -913,7 +964,10 @@
|
|
|
913
964
|
"name": "constant.character.escape.gdscript"
|
|
914
965
|
},
|
|
915
966
|
{
|
|
916
|
-
"include": "#
|
|
967
|
+
"include": "#string_percent_placeholders"
|
|
968
|
+
},
|
|
969
|
+
{
|
|
970
|
+
"include": "#string_bracket_placeholders"
|
|
917
971
|
}
|
|
918
972
|
]
|
|
919
973
|
},
|
|
@@ -995,6 +1049,10 @@
|
|
|
995
1049
|
"include": "#keywords"
|
|
996
1050
|
}
|
|
997
1051
|
]
|
|
1052
|
+
},
|
|
1053
|
+
"wordlike_operator": {
|
|
1054
|
+
"match": "\\b(and|or|not)\\b",
|
|
1055
|
+
"name": "keyword.operator.wordlike.gdscript"
|
|
998
1056
|
}
|
|
999
1057
|
},
|
|
1000
1058
|
"scopeName": "source.gdscript"
|