aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/queries/pod
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2023-06-12 09:54:30 -0600
committerChristian Clason <c.clason@uni-graz.at>2025-05-12 18:43:40 +0200
commit692b051b09935653befdb8f7ba8afdb640adf17b (patch)
tree167162b6b129ae04f68c5735078521a72917c742 /runtime/queries/pod
parentfeat(c-family): inherit injections (diff)
downloadnvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar
nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.gz
nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.bz2
nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.lz
nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.xz
nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.zst
nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.zip
feat!: drop modules, general refactor and cleanup
Diffstat (limited to 'runtime/queries/pod')
-rw-r--r--runtime/queries/pod/highlights.scm76
1 files changed, 76 insertions, 0 deletions
diff --git a/runtime/queries/pod/highlights.scm b/runtime/queries/pod/highlights.scm
new file mode 100644
index 000000000..8252ac1ba
--- /dev/null
+++ b/runtime/queries/pod/highlights.scm
@@ -0,0 +1,76 @@
+; A highlight file for nvim-treesitter to use
+[
+ (pod_command)
+ (command)
+ (cut_command)
+] @keyword
+
+((command_paragraph
+ (command) @keyword
+ (content) @string)
+ (#set! priority 99))
+
+(command_paragraph
+ (command) @keyword
+ (#lua-match? @keyword "^=head")
+ (content) @markup.heading)
+
+(command_paragraph
+ (command) @keyword
+ (#lua-match? @keyword "^=over")
+ (content) @number)
+
+(command_paragraph
+ (command) @keyword
+ (#lua-match? @keyword "^=item")
+ (content) @none)
+
+(command_paragraph
+ (command) @keyword
+ (#lua-match? @keyword "^=encoding")
+ (content) @string.special)
+
+(verbatim_paragraph
+ (content) @markup.raw)
+
+(interior_sequence
+ (sequence_letter) @character
+ [
+ "<"
+ ">"
+ ] @punctuation.delimiter)
+
+(interior_sequence
+ (sequence_letter) @character
+ (#eq? @character "B")
+ (content) @markup.strong)
+
+(interior_sequence
+ (sequence_letter) @character
+ (#eq? @character "C")
+ (content) @markup.raw)
+
+(interior_sequence
+ (sequence_letter) @character
+ (#eq? @character "F")
+ (content) @string.special.path)
+
+(interior_sequence
+ (sequence_letter) @character
+ (#eq? @character "I")
+ (content) @markup.italic)
+
+(interior_sequence
+ (sequence_letter) @character
+ (#eq? @character "L")
+ (content) @string.special.url)
+
+(interior_sequence
+ (sequence_letter) @character
+ (#eq? @character "X")
+ (content) @markup.link)
+
+(interior_sequence
+ (sequence_letter) @character
+ (#eq? @character "E")
+ (content) @string.escape)