aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lua/nvim-treesitter/parsers.lua12
-rw-r--r--queries/sxhkdrc/highlights.scm10
2 files changed, 22 insertions, 0 deletions
diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua
index edc062edb..3f8bfd6b5 100644
--- a/lua/nvim-treesitter/parsers.lua
+++ b/lua/nvim-treesitter/parsers.lua
@@ -1176,6 +1176,18 @@ list.tiger = {
maintainers = { "@ambroisie" },
}
+list.sxhkdrc = {
+ install_info = {
+ url = "~/sectors/treesitter/tree-sitter-sxhkdrc",
+ files = {"src/parser.c"},
+ branch = "master",
+ generate_requires_npm = false,
+ requires_generate_from_grammar = false,
+ filetype = "sxhkdrc",
+ maintainers = { "@RaafatTurki" },
+ }
+}
+
list.gitignore = {
install_info = {
url = "https://github.com/shunsambongi/tree-sitter-gitignore",
diff --git a/queries/sxhkdrc/highlights.scm b/queries/sxhkdrc/highlights.scm
new file mode 100644
index 000000000..e3d47dd51
--- /dev/null
+++ b/queries/sxhkdrc/highlights.scm
@@ -0,0 +1,10 @@
+(modifier) @keyword
+(operator) @operator
+(attribute) @type
+(command_sync_prefix) @type
+(punctuation) @punctuation.bracket
+(delimiter) @punctuation.delimiter
+(keysym) @variable
+(comment) @comment
+(range) @number
+"\\\n" @punctuation.special