aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries')
-rw-r--r--runtime/queries/markdown_inline/highlights.scm5
-rw-r--r--runtime/queries/vimdoc/highlights.scm23
2 files changed, 21 insertions, 7 deletions
diff --git a/runtime/queries/markdown_inline/highlights.scm b/runtime/queries/markdown_inline/highlights.scm
index e9b41c31d5..5f3519777f 100644
--- a/runtime/queries/markdown_inline/highlights.scm
+++ b/runtime/queries/markdown_inline/highlights.scm
@@ -33,6 +33,11 @@
] @markup.link
(#set! conceal ""))
+(inline_link
+ (link_text) @markup.link.label
+ (link_destination) @markup.link
+ (#set! @markup.link.label "url" @markup.link))
+
; Conceal image links
(image
[
diff --git a/runtime/queries/vimdoc/highlights.scm b/runtime/queries/vimdoc/highlights.scm
index 294fa94f10..0c10b3c0b3 100644
--- a/runtime/queries/vimdoc/highlights.scm
+++ b/runtime/queries/vimdoc/highlights.scm
@@ -12,21 +12,30 @@
(tag
"*" @markup.heading.5.marker
- (#set! conceal "")
- text: (_) @label)
+ .
+ text: (_) @label
+ .
+ "*" @markup.heading.5.marker
+ (#set! @markup.heading.5.marker conceal ""))
(taglink
- "|" @markup.link
- (#set! conceal "")
- text: (_) @markup.link)
+ "|" @markup.link.delimiter
+ .
+ text: (_) @markup.link
+ .
+ "|" @markup.link.delimiter
+ (#set! @markup.link.delimiter conceal ""))
(optionlink
text: (_) @markup.link)
(codespan
"`" @markup.raw.delimiter
- (#set! conceal "")
- text: (_) @markup.raw)
+ .
+ text: (_) @markup.raw
+ .
+ "`" @markup.raw.delimiter
+ (#set! @markup.raw.delimiter conceal ""))
((codeblock) @markup.raw.block
(#set! "priority" 90))