capture markdown link text as markup.link.text (#1456)
This commit is contained in:
parent
5e22694865
commit
b799b0d50e
3 changed files with 9 additions and 2 deletions
|
@ -171,8 +171,9 @@ We use a similar set of scopes as
|
||||||
- `bold`
|
- `bold`
|
||||||
- `italic`
|
- `italic`
|
||||||
- `link`
|
- `link`
|
||||||
- `url`
|
- `url` - urls pointed to by links
|
||||||
- `label`
|
- `label` - non-url link references
|
||||||
|
- `text` - url and image descriptions in links
|
||||||
- `quote`
|
- `quote`
|
||||||
- `raw`
|
- `raw`
|
||||||
- `inline`
|
- `inline`
|
||||||
|
|
|
@ -21,6 +21,11 @@
|
||||||
(link_destination) @markup.link.url
|
(link_destination) @markup.link.url
|
||||||
(link_label) @markup.link.label
|
(link_label) @markup.link.label
|
||||||
|
|
||||||
|
[
|
||||||
|
(link_text)
|
||||||
|
(image_description)
|
||||||
|
] @markup.link.text
|
||||||
|
|
||||||
[
|
[
|
||||||
(list_marker_plus)
|
(list_marker_plus)
|
||||||
(list_marker_minus)
|
(list_marker_minus)
|
||||||
|
|
|
@ -32,6 +32,7 @@ label = "honey"
|
||||||
"markup.bold" = { modifiers = ["bold"] }
|
"markup.bold" = { modifiers = ["bold"] }
|
||||||
"markup.italic" = { modifiers = ["italic"] }
|
"markup.italic" = { modifiers = ["italic"] }
|
||||||
"markup.link.url" = { fg = "silver", modifiers = ["underlined"] }
|
"markup.link.url" = { fg = "silver", modifiers = ["underlined"] }
|
||||||
|
"markup.link.text" = "almond"
|
||||||
"markup.raw" = "almond"
|
"markup.raw" = "almond"
|
||||||
|
|
||||||
"diff.plus" = "#35bf86"
|
"diff.plus" = "#35bf86"
|
||||||
|
|
Loading…
Add table
Reference in a new issue