mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 02:10:15 -04:00
feat: add vimdoc parser and highlight queries
This commit is contained in:
parent
82584359b7
commit
7e9c46b678
3 changed files with 27 additions and 0 deletions
|
|
@ -299,6 +299,9 @@
|
||||||
"vim": {
|
"vim": {
|
||||||
"revision": "c9d70082af14988842eb071c6c0b07e8d1d993ac"
|
"revision": "c9d70082af14988842eb071c6c0b07e8d1d993ac"
|
||||||
},
|
},
|
||||||
|
"help": {
|
||||||
|
"revision": "5e4851189b3d005275263cfc7f5a4a6ea2dbdf9b"
|
||||||
|
},
|
||||||
"vue": {
|
"vue": {
|
||||||
"revision": "91fe2754796cd8fba5f229505a23fa08f3546c06"
|
"revision": "91fe2754796cd8fba5f229505a23fa08f3546c06"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -827,6 +827,16 @@ list.vim = {
|
||||||
maintainers = { "@vigoux" },
|
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 = {
|
list.json5 = {
|
||||||
install_info = {
|
install_info = {
|
||||||
url = "https://github.com/Joakker/tree-sitter-json5",
|
url = "https://github.com/Joakker/tree-sitter-json5",
|
||||||
|
|
|
||||||
14
queries/help/highlights.scm
Normal file
14
queries/help/highlights.scm
Normal file
|
|
@ -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)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue