aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2022-09-28 14:49:51 +0200
committerChristian Clason <christian.clason@uni-due.de>2022-09-29 08:41:42 +0200
commit5f6f866c86fdef9fbcdb72a7dbe1d082a664a9c7 (patch)
treecd05de7ab6bdf5158badb785b98dcd0abdfcfc99
parentindents(wgsl): add indents.scm (diff)
downloadnvim-treesitter-5f6f866c86fdef9fbcdb72a7dbe1d082a664a9c7.tar
nvim-treesitter-5f6f866c86fdef9fbcdb72a7dbe1d082a664a9c7.tar.gz
nvim-treesitter-5f6f866c86fdef9fbcdb72a7dbe1d082a664a9c7.tar.bz2
nvim-treesitter-5f6f866c86fdef9fbcdb72a7dbe1d082a664a9c7.tar.lz
nvim-treesitter-5f6f866c86fdef9fbcdb72a7dbe1d082a664a9c7.tar.xz
nvim-treesitter-5f6f866c86fdef9fbcdb72a7dbe1d082a664a9c7.tar.zst
nvim-treesitter-5f6f866c86fdef9fbcdb72a7dbe1d082a664a9c7.zip
update vimdoc parser and queries
-rw-r--r--lockfile.json2
-rw-r--r--lua/nvim-treesitter/parsers.lua5
-rw-r--r--queries/help/highlights.scm19
3 files changed, 13 insertions, 13 deletions
diff --git a/lockfile.json b/lockfile.json
index dada62e6d..576c9ebb7 100644
--- a/lockfile.json
+++ b/lockfile.json
@@ -144,7 +144,7 @@
"revision": "881f1c805f51485a26ecd7865d15c9ef8d606a78"
},
"help": {
- "revision": "d1900d988c16a40f6882bfe590cecd9fafb7434f"
+ "revision": "55292d96a0c76235c64a2b50aba8c8d9765129df"
},
"hjson": {
"revision": "02fa3b79b3ff9a296066da6277adfc3f26cbc9e0"
diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua
index 34fb8be89..db8ea2c98 100644
--- a/lua/nvim-treesitter/parsers.lua
+++ b/lua/nvim-treesitter/parsers.lua
@@ -964,12 +964,11 @@ list.vim = {
list.help = {
install_info = {
- url = "https://github.com/vigoux/tree-sitter-vimdoc",
- files = { "src/parser.c", "src/scanner.c" },
+ url = "https://github.com/neovim/tree-sitter-vimdoc",
+ files = { "src/parser.c" },
},
filetype = "help",
maintainers = { "@vigoux" },
- experimental = true,
}
list.json5 = {
diff --git a/queries/help/highlights.scm b/queries/help/highlights.scm
index 500d08b84..6be4e49c8 100644
--- a/queries/help/highlights.scm
+++ b/queries/help/highlights.scm
@@ -1,15 +1,16 @@
-(headline) @text.title
+(h1) @text.title
+(h2) @text.title
+(h3) @text.title
(column_heading) @text.title
(tag
"*" @conceal (#set! conceal "")
- name: (_) @label)
-(option
- "'" @conceal (#set! conceal "")
- name: (_) @text.literal)
-(hotlink
+ text: (_) @label)
+(taglink
"|" @conceal (#set! conceal "")
- destination: (_) @text.reference)
-(backtick
+ text: (_) @text.reference)
+(optionlink
+ text: (_) @text.literal)
+(codespan
"`" @conceal (#set! conceal "")
- content: (_) @string)
+ text: (_) @string)
(argument) @parameter