2024-01-25 06:12:17 +01:00
|
|
|
; 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)
|
2024-01-25 06:12:17 +01:00
|
|
|
|
|
|
|
(command_paragraph
|
|
|
|
(command) @keyword
|
|
|
|
(#eq? @keyword "=head2")
|
2023-08-13 03:14:18 +02:00
|
|
|
(content) @markup.heading.2)
|
2024-01-25 06:12:17 +01:00
|
|
|
|
|
|
|
(command_paragraph
|
|
|
|
(command) @keyword
|
|
|
|
(#eq? @keyword "=head3")
|
2023-08-13 03:14:18 +02:00
|
|
|
(content) @markup.heading.3)
|
2024-01-25 06:12:17 +01:00
|
|
|
|
|
|
|
(command_paragraph
|
|
|
|
(command) @keyword
|
|
|
|
(#eq? @keyword "=head4")
|
2023-08-13 03:14:18 +02:00
|
|
|
(content) @markup.heading.4)
|
2024-01-25 06:12:17 +01:00
|
|
|
|
|
|
|
(command_paragraph
|
|
|
|
(command) @keyword
|
|
|
|
(#eq? @keyword "=head5")
|
2023-08-13 03:14:18 +02:00
|
|
|
(content) @markup.heading.5)
|
2024-01-25 06:12:17 +01:00
|
|
|
|
|
|
|
(command_paragraph
|
|
|
|
(command) @keyword
|
|
|
|
(#eq? @keyword "=head6")
|
2023-08-13 03:14:18 +02:00
|
|
|
(content) @markup.heading.6)
|
|
|
|
|
2024-01-25 06:12:17 +01:00
|
|
|
(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)
|
|
|
|
|
2024-01-25 06:12:17 +01:00
|
|
|
(interior_sequence
|
|
|
|
(sequence_letter) @constant.character
|
|
|
|
["<" ">"] @punctuation.delimiter
|
|
|
|
)
|
2023-08-13 03:14:18 +02:00
|
|
|
|
|
|
|
(interior_sequence
|
2024-01-25 06:12:17 +01:00
|
|
|
(sequence_letter) @character
|
|
|
|
(#eq? @character "B")
|
2023-08-13 03:14:18 +02:00
|
|
|
(content) @markup.bold)
|
2024-01-25 06:12:17 +01:00
|
|
|
|
2023-08-13 03:14:18 +02:00
|
|
|
(interior_sequence
|
2024-01-25 06:12:17 +01:00
|
|
|
(sequence_letter) @character
|
|
|
|
(#eq? @character "C")
|
|
|
|
(content) @markup.literal)
|
|
|
|
|
2023-08-13 03:14:18 +02:00
|
|
|
(interior_sequence
|
2024-01-25 06:12:17 +01:00
|
|
|
(sequence_letter) @character
|
|
|
|
(#eq? @character "F")
|
|
|
|
(content) @markup.underline @string.special)
|
|
|
|
|
2023-08-13 03:14:18 +02:00
|
|
|
(interior_sequence
|
2024-01-25 06:12:17 +01:00
|
|
|
(sequence_letter) @character
|
|
|
|
(#eq? @character "I")
|
|
|
|
(content) @markup.bold)
|
|
|
|
|
2023-08-13 03:14:18 +02:00
|
|
|
(interior_sequence
|
2024-01-25 06:12:17 +01:00
|
|
|
(sequence_letter) @character
|
|
|
|
(#eq? @character "L")
|
2023-08-13 03:14:18 +02:00
|
|
|
(content) @markup.link.url)
|
2024-01-25 06:12:17 +01:00
|
|
|
|
|
|
|
(interior_sequence
|
|
|
|
(sequence_letter) @character
|
|
|
|
(#eq? @character "X")
|
|
|
|
(content) @markup.reference)
|
|
|
|
|
|
|
|
(interior_sequence
|
|
|
|
(sequence_letter) @character
|
|
|
|
(#eq? @character "E")
|
|
|
|
(content) @string.special.escape)
|