mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 09:26:19 +04:00
Add godot resource support (#3759)
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
This commit is contained in:
parent
5489c9ad4e
commit
54e78dd24f
@ -38,6 +38,7 @@
|
||||
| gleam | ✓ | ✓ | | `gleam` |
|
||||
| glsl | ✓ | ✓ | ✓ | |
|
||||
| go | ✓ | ✓ | ✓ | `gopls` |
|
||||
| godot-resource | ✓ | | | |
|
||||
| gomod | ✓ | | | `gopls` |
|
||||
| gotmpl | ✓ | | | `gopls` |
|
||||
| gowork | ✓ | | | `gopls` |
|
||||
|
@ -1333,6 +1333,21 @@ indent = { tab-width = 4, unit = " " }
|
||||
name = "gdscript"
|
||||
source = { git = "https://github.com/PrestonKnopp/tree-sitter-gdscript", rev = "2a6abdaa47fcb91397e09a97c7433fd995ea46c6" }
|
||||
|
||||
[[language]]
|
||||
name = "godot-resource"
|
||||
scope = "source.tscn"
|
||||
injection-regex = "godot"
|
||||
file-types = ["tscn","tres"]
|
||||
shebangs = []
|
||||
roots = ["project.godot"]
|
||||
auto-format = false
|
||||
comment-token = "#"
|
||||
indent = { tab-width = 4, unit = "\t" }
|
||||
|
||||
[[grammar]]
|
||||
name = "godot-resource"
|
||||
source = { git = "https://github.com/PrestonKnopp/tree-sitter-godot-resource", rev = "b6ef0768711086a86b3297056f9ffb5cc1d77b4a" }
|
||||
|
||||
[[language]]
|
||||
name = "nu"
|
||||
scope = "source.nu"
|
||||
|
28
runtime/queries/godot-resource/highlights.scm
Normal file
28
runtime/queries/godot-resource/highlights.scm
Normal file
@ -0,0 +1,28 @@
|
||||
(section (identifier) @type.builtin)
|
||||
|
||||
(attribute (identifier) @attribute)
|
||||
(property (path) @variable.other.member)
|
||||
(constructor (identifier) @constructor)
|
||||
|
||||
(string) @string
|
||||
(integer) @constant.numeric.integer
|
||||
(float) @constant.numeric.float
|
||||
|
||||
(true) @constant.builtin.boolean
|
||||
(false) @constant.builtin.boolean
|
||||
|
||||
[
|
||||
"["
|
||||
"]"
|
||||
] @tag
|
||||
|
||||
[
|
||||
"("
|
||||
")"
|
||||
"{"
|
||||
"}"
|
||||
] @punctuation.bracket
|
||||
|
||||
"=" @operator
|
||||
|
||||
(ERROR) @error
|
Loading…
Reference in New Issue
Block a user