diff options
| author | Pierre Poupin <pierrep@bam.tech> | 2021-07-28 19:52:29 +0200 |
|---|---|---|
| committer | Stephan Seitz <stephan.lauf@yahoo.de> | 2021-07-29 07:34:15 +0200 |
| commit | 670275de301a8ab5ae587e14a7de82e3c95eba11 (patch) | |
| tree | d4b3185c78fc8f0c4c1e3ef289c95da198067343 | |
| parent | 9e147d23566f58f2da6682242ffb89cb0de426b5 (diff) | |
feature: add godotResource queries
| -rw-r--r-- | lua/nvim-treesitter/parsers.lua | 10 | ||||
| -rw-r--r-- | queries/godotResource/folds.scm | 3 | ||||
| -rw-r--r-- | queries/godotResource/highlights.scm | 28 | ||||
| -rw-r--r-- | queries/godotResource/locals.scm | 3 |
4 files changed, 44 insertions, 0 deletions
diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua index 32b2b903..8936619c 100644 --- a/lua/nvim-treesitter/parsers.lua +++ b/lua/nvim-treesitter/parsers.lua @@ -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", diff --git a/queries/godotResource/folds.scm b/queries/godotResource/folds.scm new file mode 100644 index 00000000..943e0628 --- /dev/null +++ b/queries/godotResource/folds.scm @@ -0,0 +1,3 @@ +[ + (section) +] @fold diff --git a/queries/godotResource/highlights.scm b/queries/godotResource/highlights.scm new file mode 100644 index 00000000..005ddaac --- /dev/null +++ b/queries/godotResource/highlights.scm @@ -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 diff --git a/queries/godotResource/locals.scm b/queries/godotResource/locals.scm new file mode 100644 index 00000000..1dce04f0 --- /dev/null +++ b/queries/godotResource/locals.scm @@ -0,0 +1,3 @@ +[ + (section) +] @scope |
