mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 18:00:07 -04:00
feature: add godotResource queries
This commit is contained in:
parent
95a3e81630
commit
6875f4bd9d
4 changed files with 44 additions and 0 deletions
|
|
@ -545,6 +545,16 @@ list.gdscript = {
|
||||||
maintainers = { "@Shatur95" },
|
maintainers = { "@Shatur95" },
|
||||||
}
|
}
|
||||||
|
|
||||||
|
list.godotResource = {
|
||||||
|
install_info = {
|
||||||
|
url = "https://github.com/PrestonKnopp/tree-sitter-godot-resource",
|
||||||
|
files = { "src/parser.c", "src/scanner.c" },
|
||||||
|
requires_generate_from_grammar = true,
|
||||||
|
},
|
||||||
|
readme_name = "Godot Resources (godotResource)",
|
||||||
|
maintainers = { "@pierpo" },
|
||||||
|
}
|
||||||
|
|
||||||
list.turtle = {
|
list.turtle = {
|
||||||
install_info = {
|
install_info = {
|
||||||
url = "https://github.com/BonaBeavis/tree-sitter-turtle",
|
url = "https://github.com/BonaBeavis/tree-sitter-turtle",
|
||||||
|
|
|
||||||
3
queries/godotResource/folds.scm
Normal file
3
queries/godotResource/folds.scm
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
[
|
||||||
|
(section)
|
||||||
|
] @fold
|
||||||
28
queries/godotResource/highlights.scm
Normal file
28
queries/godotResource/highlights.scm
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
(identifier) @type.builtin
|
||||||
|
|
||||||
|
(attribute (identifier) @property)
|
||||||
|
(property (path) @property)
|
||||||
|
(constructor (identifier) @constructor)
|
||||||
|
|
||||||
|
(string) @string
|
||||||
|
(integer) @number
|
||||||
|
(float) @float
|
||||||
|
|
||||||
|
(true) @constant.builtin
|
||||||
|
(false) @constant.builtin
|
||||||
|
|
||||||
|
[
|
||||||
|
"["
|
||||||
|
"]"
|
||||||
|
] @tag.delimiter
|
||||||
|
|
||||||
|
[
|
||||||
|
"("
|
||||||
|
")"
|
||||||
|
"{"
|
||||||
|
"}"
|
||||||
|
] @punctuation.bracket
|
||||||
|
|
||||||
|
"=" @operator
|
||||||
|
|
||||||
|
(ERROR) @error
|
||||||
3
queries/godotResource/locals.scm
Normal file
3
queries/godotResource/locals.scm
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
[
|
||||||
|
(section)
|
||||||
|
] @scope
|
||||||
Loading…
Add table
Add a link
Reference in a new issue