mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-10 15:30:01 -04:00
feature: add godotResource queries
This commit is contained in:
parent
95a3e81630
commit
6875f4bd9d
4 changed files with 44 additions and 0 deletions
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