diff options
author | Jesse Luehrs | 2023-08-13 01:14:18 +0000 |
---|---|---|
committer | GitHub | 2023-08-13 01:14:18 +0000 |
commit | 2caca1c4e92d46a9b021deed5d50025a5f229325 (patch) | |
tree | 8a3a4450ba827a2cee6db3391205737ff7af9ea2 /runtime/queries/pod/highlights.scm | |
parent | 01776e685103032daccbc0d319f0aceed3bb9156 (diff) |
Add pod highlighting (#7907)
Diffstat (limited to 'runtime/queries/pod/highlights.scm')
-rw-r--r-- | runtime/queries/pod/highlights.scm | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/runtime/queries/pod/highlights.scm b/runtime/queries/pod/highlights.scm new file mode 100644 index 00000000..e8bd4b54 --- /dev/null +++ b/runtime/queries/pod/highlights.scm @@ -0,0 +1,61 @@ +[(pod_directive) + (head_directive) + (over_directive) + (item_directive) + (back_directive) + (encoding_directive) + (cut_directive)] @tag + +(head_paragraph + (head_directive) @directive + (#eq? @directive "=head1") + (content) @markup.heading.1) +(head_paragraph + (head_directive) @directive + (#eq? @directive "=head2") + (content) @markup.heading.2) +(head_paragraph + (head_directive) @directive + (#eq? @directive "=head3") + (content) @markup.heading.3) +(head_paragraph + (head_directive) @directive + (#eq? @directive "=head4") + (content) @markup.heading.4) +(head_paragraph + (head_directive) @directive + (#eq? @directive "=head5") + (content) @markup.heading.5) +(head_paragraph + (head_directive) @directive + (#eq? @directive "=head6") + (content) @markup.heading.6) + +(over_paragraph (content) @constant.numeric.integer) +(item_paragraph (content) @markup.list) +(encoding_paragraph (content) @string) + +(verbatim_paragraph (content) @markup.raw) + +(interior_sequence) @tag + +(interior_sequence + (sequence_letter) @letter + (#eq? @letter "B") + (content) @markup.bold) +(interior_sequence + (sequence_letter) @letter + (#eq? @letter "C") + (content) @markup.raw) +(interior_sequence + (sequence_letter) @letter + (#eq? @letter "F") + (content) @markup.italic) +(interior_sequence + (sequence_letter) @letter + (#eq? @letter "I") + (content) @markup.italic) +(interior_sequence + (sequence_letter) @letter + (#eq? @letter "L") + (content) @markup.link.url) |