nvim-treesitter/queries/vimdoc/highlights.scm
2023-12-21 22:29:31 +09:00

31 lines
833 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.block (#set! "priority" 90))
(codeblock
[">" (language)] @conceal (#set! conceal ""))
(block
"<" @conceal (#set! conceal ""))
(argument) @parameter
(keycode) @string.special
(url) @text.uri
((note) @text.note
(#any-of? @text.note "Note:" "NOTE:" "Notes:"))
((note) @text.warning
(#any-of? @text.warning "Warning:" "WARNING:"))
((note) @text.danger
(#any-of? @text.danger "Deprecated:" "DEPRECATED:"))