diff options
| author | Jonathan Lopez <jonathanglopez@gmail.com> | 2022-06-21 20:13:06 -0400 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-06-22 13:56:11 +0200 |
| commit | 238532fe82b3dbfedcc06f11a536e19b1df696e1 (patch) | |
| tree | 7753cbafae3b1bff0b9396b9800da76fea2e63ce /queries | |
| parent | Refactor markdown conceal code (diff) | |
| download | nvim-treesitter-238532fe82b3dbfedcc06f11a536e19b1df696e1.tar nvim-treesitter-238532fe82b3dbfedcc06f11a536e19b1df696e1.tar.gz nvim-treesitter-238532fe82b3dbfedcc06f11a536e19b1df696e1.tar.bz2 nvim-treesitter-238532fe82b3dbfedcc06f11a536e19b1df696e1.tar.lz nvim-treesitter-238532fe82b3dbfedcc06f11a536e19b1df696e1.tar.xz nvim-treesitter-238532fe82b3dbfedcc06f11a536e19b1df696e1.tar.zst nvim-treesitter-238532fe82b3dbfedcc06f11a536e19b1df696e1.zip | |
Simplify inline conceal
Diffstat (limited to 'queries')
| -rw-r--r-- | queries/markdown/highlights.scm | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/queries/markdown/highlights.scm b/queries/markdown/highlights.scm index dbb79fa31..9d6959b22 100644 --- a/queries/markdown/highlights.scm +++ b/queries/markdown/highlights.scm @@ -82,15 +82,10 @@ (#set! conceal "")) -;; Inline_link Conceal -; Conceal preceeding "[" character for inline links -(inline_link - "[" @conceal - (#set! conceal "")) - ; Conceal inline links (inline_link [ + "[" "]" "(" (link_destination) @@ -99,15 +94,11 @@ (#set! conceal "")) -;; Image Conceal -; Conceal preceeding "!" and "[" characters for image links -(image - ["!" "["] @conceal - (#set! conceal "")) - ; Conceal image links (image [ + "!" + "[" "]" "(" (link_destination) |
