helix-mods/runtime/queries/pod/highlights.scm

98 lines
2 KiB
Scheme
Raw Normal View History

; A highlight file for nvim-treesitter to use
[(pod_command)
(command)
(cut_command)] @keyword
(command_paragraph
(command) @keyword
(#eq? @keyword "=head1")
2023-08-13 03:14:18 +02:00
(content) @markup.heading.1)
(command_paragraph
(command) @keyword
(#eq? @keyword "=head2")
2023-08-13 03:14:18 +02:00
(content) @markup.heading.2)
(command_paragraph
(command) @keyword
(#eq? @keyword "=head3")
2023-08-13 03:14:18 +02:00
(content) @markup.heading.3)
(command_paragraph
(command) @keyword
(#eq? @keyword "=head4")
2023-08-13 03:14:18 +02:00
(content) @markup.heading.4)
(command_paragraph
(command) @keyword
(#eq? @keyword "=head5")
2023-08-13 03:14:18 +02:00
(content) @markup.heading.5)
(command_paragraph
(command) @keyword
(#eq? @keyword "=head6")
2023-08-13 03:14:18 +02:00
(content) @markup.heading.6)
(command_paragraph
(command) @keyword
(#match? @keyword "^=over")
(content) @constant.numeric)
(command_paragraph
(command) @keyword
(#match? @keyword "^=item")
(content) @markup)
(command_paragraph
(command) @keyword
(#match? @keyword "^=encoding")
(content) @string.special)
(command_paragraph
(command) @keyword
(#not-match? @keyword "^=(head|over|item|encoding)")
(content) @string)
2023-08-13 03:14:18 +02:00
(verbatim_paragraph (content) @markup.raw)
(interior_sequence
(sequence_letter) @constant.character
["<" ">"] @punctuation.delimiter
)
2023-08-13 03:14:18 +02:00
(interior_sequence
(sequence_letter) @character
(#eq? @character "B")
2023-08-13 03:14:18 +02:00
(content) @markup.bold)
2023-08-13 03:14:18 +02:00
(interior_sequence
(sequence_letter) @character
(#eq? @character "C")
(content) @markup.literal)
2023-08-13 03:14:18 +02:00
(interior_sequence
(sequence_letter) @character
(#eq? @character "F")
(content) @markup.underline @string.special)
2023-08-13 03:14:18 +02:00
(interior_sequence
(sequence_letter) @character
(#eq? @character "I")
(content) @markup.bold)
2023-08-13 03:14:18 +02:00
(interior_sequence
(sequence_letter) @character
(#eq? @character "L")
2023-08-13 03:14:18 +02:00
(content) @markup.link.url)
(interior_sequence
(sequence_letter) @character
(#eq? @character "X")
(content) @markup.reference)
(interior_sequence
(sequence_letter) @character
(#eq? @character "E")
(content) @string.special.escape)