Skip to content

Commit da1ed15

Browse files
committed
fix: sync queries with downstream
1 parent aa3dcb2 commit da1ed15

File tree

2 files changed

+54
-26
lines changed

2 files changed

+54
-26
lines changed

queries/vimdoc/highlights.scm

Lines changed: 50 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,58 @@
1-
(h1) @text.title
2-
(h2) @text.title
3-
(h3) @text.title
4-
(column_heading) @text.title
1+
(h1) @markup.heading.1
2+
3+
(h2) @markup.heading.2
4+
5+
(h3) @markup.heading.3
6+
7+
(column_heading) @markup.heading.4
8+
59
(column_heading
6-
"~" @conceal (#set! conceal ""))
10+
"~" @markup.heading.4.marker
11+
(#set! conceal ""))
12+
713
(tag
8-
"*" @conceal (#set! conceal "")
9-
text: (_) @label)
14+
"*" @markup.heading.5.marker
15+
(#set! conceal "")
16+
text: (_) @label)
17+
1018
(taglink
11-
"|" @conceal (#set! conceal "")
12-
text: (_) @text.reference)
19+
"|" @markup.link
20+
(#set! conceal "")
21+
text: (_) @markup.link)
22+
1323
(optionlink
14-
text: (_) @text.reference)
24+
text: (_) @markup.link)
25+
1526
(codespan
16-
"`" @conceal (#set! conceal "")
17-
text: (_) @text.literal)
18-
(codeblock) @text.literal
27+
"`" @markup.raw
28+
(#set! conceal "")
29+
text: (_) @markup.raw)
30+
31+
((codeblock) @markup.raw.block
32+
(#set! "priority" 90))
33+
1934
(codeblock
20-
[">" (language)] @conceal (#set! conceal ""))
35+
[
36+
">"
37+
(language)
38+
] @markup.raw.block
39+
(#set! conceal ""))
40+
2141
(block
22-
"<" @conceal (#set! conceal ""))
23-
(argument) @parameter
42+
"<" @markup.raw.block
43+
(#set! conceal ""))
44+
45+
(argument) @variable.parameter
46+
2447
(keycode) @string.special
25-
(url) @text.uri
26-
((note) @text.note
27-
(#any-of? @text.note "Note:" "NOTE:" "Notes:"))
28-
((note) @text.warning
29-
(#any-of? @text.warning "Warning:" "WARNING:"))
30-
((note) @text.danger
31-
(#any-of? @text.danger "Deprecated:" "DEPRECATED:"))
48+
49+
(url) @string.special.url
50+
51+
((note) @comment.hint
52+
(#any-of? @comment.hint "Note:" "NOTE:" "Notes:"))
53+
54+
((note) @comment.warning
55+
(#any-of? @comment.warning "Warning:" "WARNING:"))
56+
57+
((note) @comment.error
58+
(#any-of? @comment.error "Deprecated:" "DEPRECATED:"))

queries/vimdoc/injections.scm

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
(codeblock
2-
(language) @language
3-
(code) @contents)
1+
((codeblock
2+
(language) @injection.language
3+
(code) @injection.content)
4+
(#set! injection.include-children))

0 commit comments

Comments
 (0)