feature: add godotResource queries

This commit is contained in:
Pierre Poupin 2021-07-28 19:52:29 +02:00 committed by Stephan Seitz
parent 95a3e81630
commit 6875f4bd9d
4 changed files with 44 additions and 0 deletions

View file

@ -545,6 +545,16 @@ list.gdscript = {
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 = {
install_info = {
url = "https://github.com/BonaBeavis/tree-sitter-turtle",

View file

@ -0,0 +1,3 @@
[
(section)
] @fold

View 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

View file

@ -0,0 +1,3 @@
[
(section)
] @scope