on master help sign in
capture markdown link text as markup.link.text (#1456)
b799b0dMichael Davis
book/src/themes.md+3−2
@@ -171,8 +171,9 @@ We use a similar set of scopes as
171 - `bold`
171 - `bold`
172 - `italic`
172 - `italic`
173 - `link`
173 - `link`
174− - `url`
174+ - `url` - urls pointed to by links
175− - `label`
175+ - `label` - non-url link references
176+ - `text` - url and image descriptions in links
176 - `quote`
177 - `quote`
177 - `raw`
178 - `raw`
178 - `inline`
179 - `inline`
runtime/queries/markdown/highlights.scm+5
@@ -21,6 +21,11 @@
21(link_destination) @markup.link.url
21(link_destination) @markup.link.url
22(link_label) @markup.link.label
22(link_label) @markup.link.label
23
23
24+[
25+ (link_text)
26+ (image_description)
27+] @markup.link.text
28+
24[
29[
25 (list_marker_plus)
30 (list_marker_plus)
26 (list_marker_minus)
31 (list_marker_minus)
theme.toml+1
@@ -32,6 +32,7 @@ label = "honey"
32"markup.bold" = { modifiers = ["bold"] }
32"markup.bold" = { modifiers = ["bold"] }
33"markup.italic" = { modifiers = ["italic"] }
33"markup.italic" = { modifiers = ["italic"] }
34"markup.link.url" = { fg = "silver", modifiers = ["underlined"] }
34"markup.link.url" = { fg = "silver", modifiers = ["underlined"] }
35+"markup.link.text" = "almond"
35"markup.raw" = "almond"
36"markup.raw" = "almond"
36
37
37"diff.plus" = "#35bf86"
38"diff.plus" = "#35bf86"