aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/pod/highlights.scm
blob: e8bd4b54615cbfec4c7cd8348a3f8a2d01f8e576 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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)