feat: add vimdoc parser and highlight queries

This commit is contained in:
Christian Clason 2022-03-26 14:42:45 +01:00 committed by Christian Clason
parent 82584359b7
commit 7e9c46b678
3 changed files with 27 additions and 0 deletions

View file

@ -299,6 +299,9 @@
"vim": {
"revision": "c9d70082af14988842eb071c6c0b07e8d1d993ac"
},
"help": {
"revision": "5e4851189b3d005275263cfc7f5a4a6ea2dbdf9b"
},
"vue": {
"revision": "91fe2754796cd8fba5f229505a23fa08f3546c06"
},

View file

@ -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",

View 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)