Skip to content

Commit f68dac5

Browse files
committed
Add godot resource support
1 parent fae9203 commit f68dac5

File tree

3 files changed

+44
-0
lines changed

3 files changed

+44
-0
lines changed

book/src/generated/lang-support.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
| gleam ||| | `gleam` |
3939
| glsl |||| |
4040
| go |||| `gopls` |
41+
| godot_resource || | | |
4142
| gomod || | | `gopls` |
4243
| gotmpl || | | `gopls` |
4344
| gowork || | | `gopls` |

languages.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1333,6 +1333,21 @@ indent = { tab-width = 4, unit = " " }
13331333
name = "gdscript"
13341334
source = { git = "https://github.com/PrestonKnopp/tree-sitter-gdscript", rev = "2a6abdaa47fcb91397e09a97c7433fd995ea46c6" }
13351335

1336+
[[language]]
1337+
name = "godot_resource"
1338+
scope = "source.tscn"
1339+
injection-regex = "godot"
1340+
file-types = ["tscn","tres"]
1341+
shebangs = []
1342+
roots = ["project.godot"]
1343+
auto-format = false
1344+
comment-token = "#"
1345+
indent = { tab-width = 4, unit = "\t" }
1346+
1347+
[[grammar]]
1348+
name = "godot_resource"
1349+
source = { git = "https://github.com/PrestonKnopp/tree-sitter-godot-resource", rev = "b6ef0768711086a86b3297056f9ffb5cc1d77b4a" }
1350+
13361351
[[language]]
13371352
name = "nu"
13381353
scope = "source.nu"
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
(section (identifier) @type.builtin)
2+
3+
(attribute (identifier) @attribute)
4+
(property (path) @attribute)
5+
(constructor (identifier) @constructor)
6+
7+
(string) @string
8+
(integer) @constant.numeric.integer
9+
(float) @constant.numberic.float
10+
11+
(true) @constant.builtin.boolean
12+
(false) @constant.builtin.boolean
13+
14+
[
15+
"["
16+
"]"
17+
] @tag
18+
19+
[
20+
"("
21+
")"
22+
"{"
23+
"}"
24+
] @punctuation.bracket
25+
26+
"=" @operator
27+
28+
(ERROR) @error

0 commit comments

Comments
 (0)