From ddcda043017f34fa1a8109fcb847e5dfdd70ee41 Mon Sep 17 00:00:00 2001 From: Raafat Turki Date: Wed, 31 Aug 2022 03:44:53 +0300 Subject: feat: add tree-sitter-sxhkdrc --- lua/nvim-treesitter/parsers.lua | 12 ++++++++++++ queries/sxhkdrc/highlights.scm | 10 ++++++++++ 2 files changed, 22 insertions(+) create mode 100644 queries/sxhkdrc/highlights.scm diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua index edc062ed..3f8bfd6b 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 00000000..e3d47dd5 --- /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 -- cgit v1.2.3