nvim-treesitter/queries/vimdoc/highlights.scm
Christian Clason 680807fa6a highlights(markup): distinguish heading level in queries
also add a few queries from Helix and remove controversial
code block conceal in Markdown
2023-05-13 16:50:32 +02:00

25 lines
583 B
Scheme

(h1) @text.title.1
(h2) @text.title.2
(h3) @text.title.3
(column_heading) @text.title.4
(column_heading
"~" @conceal (#set! conceal ""))
(tag
"*" @conceal (#set! conceal "")
text: (_) @label)
(taglink
"|" @conceal (#set! conceal "")
text: (_) @text.reference)
(optionlink
text: (_) @text.reference)
(codespan
"`" @conceal (#set! conceal "")
text: (_) @text.literal)
(codeblock) @text.literal
(codeblock
[">" (language)] @conceal (#set! conceal ""))
(block
"<" @conceal (#set! conceal ""))
(argument) @parameter
(keycode) @string.special
(url) @text.uri