Debian Codegraph @

runtime/queries/djot/highlights.scm

raw symbols SCIP
1 (heading) @markup.heading
2
3 ((heading
4 (marker) @markup.heading.marker) @markup.heading.1
5 (#eq? @markup.heading.marker "# "))
6
7 ((heading
8 (marker) @markup.heading.marker) @markup.heading.2
9 (#eq? @markup.heading.marker "## "))
10
11 ((heading
12 (marker) @markup.heading.marker) @markup.heading.3
13 (#eq? @markup.heading.marker "### "))
14
15 ((heading
16 (marker) @markup.heading.marker) @markup.heading.4
17 (#eq? @markup.heading.marker "##### "))
18
19 ((heading
20 (marker) @markup.heading.marker) @markup.heading.5
21 (#eq? @markup.heading.marker "###### "))
22
23 ((heading
24 (marker) @markup.heading.marker) @markup.heading.6
25 (#eq? @markup.heading.marker "####### "))
26
27 (thematic_break) @special
28
29 [
30 (div_marker_begin)
31 (div_marker_end)
32 ] @tag
33
34 [
35 (code_block)
36 (raw_block)
37 (frontmatter)
38 ] @markup.raw.block
39
40 [
41 (code_block_marker_begin)
42 (code_block_marker_end)
43 (raw_block_marker_begin)
44 (raw_block_marker_end)
45 ] @punctuation.bracket
46
47 (language) @type.enum.variant
48
49 (inline_attribute _ @attribute)
50
51 (language_marker) @punctuation.delimiter
52
53 [
54 (block_quote)
55 (block_quote_marker)
56 ] @markup.quote
57
58 (table_header) @markup.heading
59
60 (table_header "|" @punctuation.special)
61
62 (table_row "|" @punctuation.special)
63
64 (table_separator) @punctuation.special
65
66 (table_caption (marker) @punctuation.special)
67
68 (table_caption) @label
69
70 [
71 (list_marker_dash)
72 (list_marker_plus)
73 (list_marker_star)
74 (list_marker_definition)
75 ] @markup.list.unnumbered
76
77 [
78 (list_marker_decimal_period)
79 (list_marker_decimal_paren)
80 (list_marker_decimal_parens)
81 (list_marker_lower_alpha_period)
82 (list_marker_lower_alpha_paren)
83 (list_marker_lower_alpha_parens)
84 (list_marker_upper_alpha_period)
85 (list_marker_upper_alpha_paren)
86 (list_marker_upper_alpha_parens)
87 (list_marker_lower_roman_period)
88 (list_marker_lower_roman_paren)
89 (list_marker_lower_roman_parens)
90 (list_marker_upper_roman_period)
91 (list_marker_upper_roman_paren)
92 (list_marker_upper_roman_parens)
93 ] @markup.list.numbered
94
95 (list_marker_task
96 (unchecked)) @markup.list.unchecked
97
98 (list_marker_task
99 (checked)) @markup.list.checked
100
101 (checked
102 [
103 "x"
104 "X"
105 ] @constant.builtin.boolean) @markup.list.checked
106
107 [
108 (ellipsis)
109 (en_dash)
110 (em_dash)
111 (quotation_marks)
112 ] @punctuation.special
113
114 (list_item (term) @constructor)
115
116 (quotation_marks) @markup.quote
117
118 ((quotation_marks) @constant.character.escape
119 (#any-of? @constant.character.escape "\\\"" "\\'"))
120
121 [
122 (hard_line_break)
123 (backslash_escape)
124 ] @constant.character.escape
125
126 (emphasis) @markup.italic
127
128 (strong) @markup.bold
129
130 (symbol) @string.special.symbol
131
132 (delete) @markup.strikethrough
133
134 (insert) @markup.italic
135
136 (highlighted) @markup.bold
137
138 (superscript) @string.special.superscript
139
140 (subscript) @string.special.subscript
141
142 [
143 (emphasis_begin)
144 (emphasis_end)
145 (strong_begin)
146 (strong_end)
147 (superscript_begin)
148 (superscript_end)
149 (subscript_begin)
150 (subscript_end)
151 (highlighted_begin)
152 (highlighted_end)
153 (insert_begin)
154 (insert_end)
155 (delete_begin)
156 (delete_end)
157 (verbatim_marker_begin)
158 (verbatim_marker_end)
159 (math_marker)
160 (math_marker_begin)
161 (math_marker_end)
162 (raw_inline_attribute)
163 (raw_inline_marker_begin)
164 (raw_inline_marker_end)
165 ] @punctuation.bracket
166
167 (math) @markup.raw
168
169 (verbatim) @markup.raw
170
171 (raw_inline) @markup.raw
172
173 (comment) @comment.block
174
175 (inline_comment) @comment.line
176
177 (span
178 [
179 "["
180 "]"
181 ] @punctuation.bracket)
182
183 (inline_attribute
184 [
185 "{"
186 "}"
187 ] @punctuation.bracket)
188
189 (block_attribute
190 [
191 "{"
192 "}"
193 ] @punctuation.bracket)
194
195 [
196 (class)
197 (class_name)
198 ] @type
199
200 ; NOTE: Not perfectly semantically accurate, but a fair approximation.
201 (identifier) @string.special.symbol
202
203 (key_value "=" @operator)
204
205 (key_value (key) @attribute)
206
207 (key_value (value) @string)
208
209 (link_text
210 [
211 "["
212 "]"
213 ] @punctuation.bracket)
214
215 (autolink
216 [
217 "<"
218 ">"
219 ] @punctuation.bracket)
220
221 (inline_link (inline_link_destination) @markup.link.url)
222
223 (link_reference_definition ":" @punctuation.delimiter)
224
225 (full_reference_link (link_text) @markup.link.text)
226
227 (full_reference_link (link_label) @markup.link.label)
228
229 (collapsed_reference_link "[]" @punctuation.bracket)
230
231 (full_reference_link
232 [
233 "["
234 "]"
235 ] @punctuation.bracket)
236
237 (collapsed_reference_link (link_text) @markup.link.text)
238
239 (inline_link (link_text) @markup.link.text)
240
241 (full_reference_image (link_label) @markup.link.label)
242
243 (full_reference_image
244 [
245 "["
246 "]"
247 ] @punctuation.bracket)
248
249 (collapsed_reference_image "[]" @punctuation.bracket)
250
251 (image_description
252 [
253 "!["
254 "]"
255 ] @punctuation.bracket)
256
257 (image_description) @label
258
259 (link_reference_definition
260 [
261 "["
262 "]"
263 ] @punctuation.bracket)
264
265 (link_reference_definition (link_label) @markup.link.label)
266
267 (inline_link_destination
268 [
269 "("
270 ")"
271 ] @punctuation.bracket)
272
273 [
274 (autolink)
275 (inline_link_destination)
276 (link_destination)
277 ] @markup.link.url
278
279 (footnote (reference_label) @markup.link.label)
280
281 (footnote_reference (reference_label) @markup.link.label)
282
283 [
284 (footnote_marker_begin)
285 (footnote_marker_end)
286 ] @punctuation.bracket