diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2022-03-26 14:42:45 +0100 |
|---|---|---|
| committer | Christian Clason <christian.clason@uni-due.de> | 2022-03-29 18:25:23 +0200 |
| commit | 7e9c46b67816396b6276692a6446e8f2dcf28f5b (patch) | |
| tree | f93e9c661af4e8f536784d708dd032eade3ef7d9 | |
| parent | Update lockfile.json (diff) | |
| download | nvim-treesitter-7e9c46b67816396b6276692a6446e8f2dcf28f5b.tar nvim-treesitter-7e9c46b67816396b6276692a6446e8f2dcf28f5b.tar.gz nvim-treesitter-7e9c46b67816396b6276692a6446e8f2dcf28f5b.tar.bz2 nvim-treesitter-7e9c46b67816396b6276692a6446e8f2dcf28f5b.tar.lz nvim-treesitter-7e9c46b67816396b6276692a6446e8f2dcf28f5b.tar.xz nvim-treesitter-7e9c46b67816396b6276692a6446e8f2dcf28f5b.tar.zst nvim-treesitter-7e9c46b67816396b6276692a6446e8f2dcf28f5b.zip | |
feat: add vimdoc parser and highlight queries
| -rw-r--r-- | lockfile.json | 3 | ||||
| -rw-r--r-- | lua/nvim-treesitter/parsers.lua | 10 | ||||
| -rw-r--r-- | queries/help/highlights.scm | 14 |
3 files changed, 27 insertions, 0 deletions
diff --git a/lockfile.json b/lockfile.json index 2f89758ac..05a19fe27 100644 --- a/lockfile.json +++ b/lockfile.json @@ -299,6 +299,9 @@ "vim": { "revision": "c9d70082af14988842eb071c6c0b07e8d1d993ac" }, + "help": { + "revision": "5e4851189b3d005275263cfc7f5a4a6ea2dbdf9b" + }, "vue": { "revision": "91fe2754796cd8fba5f229505a23fa08f3546c06" }, diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua index 5d6c8f75c..d767095c3 100644 --- a/lua/nvim-treesitter/parsers.lua +++ b/lua/nvim-treesitter/parsers.lua @@ -827,6 +827,16 @@ list.vim = { maintainers = { "@vigoux" }, } +list.help = { + install_info = { + url = "https://github.com/vigoux/tree-sitter-vimdoc", + files = { "src/parser.c", "src/scanner.c" }, + }, + filetype = "help", + maintainers = { "@vigoux" }, + experimental = true, +} + list.json5 = { install_info = { url = "https://github.com/Joakker/tree-sitter-json5", diff --git a/queries/help/highlights.scm b/queries/help/highlights.scm new file mode 100644 index 000000000..e2fb65533 --- /dev/null +++ b/queries/help/highlights.scm @@ -0,0 +1,14 @@ +(headline) @text.title +(column_heading) @text.title +(tag + "*" @conceal (#set! conceal "") + name: (_) @label) +(option + "'" @conceal (#set! conceal "") + name: (_) @text.literal) +(hotlink + "|" @conceal (#set! conceal "") + destination: (_) @text.uri) +(backtick + "`" @conceal (#set! conceal "") + content: (_) @string) |
