diff options
| author | Josh Rahm <joshuarahm@gmail.com> | 2024-05-24 19:18:11 +0000 |
|---|---|---|
| committer | Josh Rahm <joshuarahm@gmail.com> | 2024-05-24 19:18:11 +0000 |
| commit | ff7ed8f586589d620a806c3758fac4a47a8e7e15 (patch) | |
| tree | 729bbcb92231538fa61dab6c3d890b025484b7f5 /runtime/queries/markdown_inline | |
| parent | 376914f419eb08fdf4c1a63a77e1f035898a0f10 (diff) | |
| parent | 28c04948a1c887a1cc0cb64de79fa32631700466 (diff) | |
| download | rneovim-ff7ed8f586589d620a806c3758fac4a47a8e7e15.tar.gz rneovim-ff7ed8f586589d620a806c3758fac4a47a8e7e15.tar.bz2 rneovim-ff7ed8f586589d620a806c3758fac4a47a8e7e15.zip | |
Merge remote-tracking branch 'upstream/master' into mix_20240309
Diffstat (limited to 'runtime/queries/markdown_inline')
| -rw-r--r-- | runtime/queries/markdown_inline/highlights.scm | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/runtime/queries/markdown_inline/highlights.scm b/runtime/queries/markdown_inline/highlights.scm index e9b41c31d5..233ab411cd 100644 --- a/runtime/queries/markdown_inline/highlights.scm +++ b/runtime/queries/markdown_inline/highlights.scm @@ -16,10 +16,10 @@ ] @string.escape ; Conceal codeblock and text style markers -((code_span_delimiter) @markup.raw.delimiter - (#set! conceal "")) - -((emphasis_delimiter) @conceal +([ + (code_span_delimiter) + (emphasis_delimiter) +] @conceal (#set! conceal "")) ; Conceal inline links @@ -33,6 +33,18 @@ ] @markup.link (#set! conceal "")) +[ + (link_label) + (link_text) + (link_title) + (image_description) +] @markup.link.label + +(inline_link + (link_text) @_label + (link_destination) @_url + (#set! @_label "url" @_url)) + ; Conceal image links (image [ @@ -75,13 +87,6 @@ (uri_autolink) ] @markup.link.url @nospell -[ - (link_label) - (link_text) - (link_title) - (image_description) -] @markup.link.label - ; Replace common HTML entities. ((entity_reference) @character.special (#eq? @character.special " ") |