neovim/runtime/queries/help/highlights.scm
Christian Clason 342312b8ad feat(help): highlighted codeblocks
cherry-picked from 5093f38c9f

(omit partial doc change)
2022-12-23 12:15:14 +01:00

24 lines
523 B
Scheme

(h1) @text.title
(h2) @text.title
(h3) @text.title
(column_heading) @text.title
(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