diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2024-03-14 18:46:10 +0800 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2024-03-14 18:54:22 +0800 |
| commit | 3ae78f376c2e721ce4feb23e9a5e8bc6062a2657 (patch) | |
| tree | 9ef278309379054f36e85a87107bef601219939d /queries/markdown_inline | |
| parent | bot(lockfile): update angular, awk, heex, html, kotlin, markdown, markdown_in... (diff) | |
| download | nvim-treesitter-3ae78f376c2e721ce4feb23e9a5e8bc6062a2657.tar nvim-treesitter-3ae78f376c2e721ce4feb23e9a5e8bc6062a2657.tar.gz nvim-treesitter-3ae78f376c2e721ce4feb23e9a5e8bc6062a2657.tar.bz2 nvim-treesitter-3ae78f376c2e721ce4feb23e9a5e8bc6062a2657.tar.lz nvim-treesitter-3ae78f376c2e721ce4feb23e9a5e8bc6062a2657.tar.xz nvim-treesitter-3ae78f376c2e721ce4feb23e9a5e8bc6062a2657.tar.zst nvim-treesitter-3ae78f376c2e721ce4feb23e9a5e8bc6062a2657.zip | |
fix(vimdoc): adapt to breaking Neovim change
Problem:
https://github.com/neovim/neovim/commit/cb46f6e467268edf917cc3617b4c024a66b256de#diff-edf997b0c2d42d31828800641ac1f5a46487fe24a0d46ccf70bcd58a14f3868f
introduced a regression on how `#set!` behaves with several matches in a
single pattern, breaking conceals in, e.g., taglinks.
Solution: Separate taglink etc. patterns into concealed marker and
contents. Also add URL support for concealed markdown links.
Diffstat (limited to 'queries/markdown_inline')
| -rw-r--r-- | queries/markdown_inline/highlights.scm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/queries/markdown_inline/highlights.scm b/queries/markdown_inline/highlights.scm index cae8acfb4..e38ef3d7b 100644 --- a/queries/markdown_inline/highlights.scm +++ b/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 [ |
