diff options
author | Christian Clason <c.clason@uni-graz.at> | 2022-12-03 15:16:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-03 15:16:37 +0100 |
commit | fba0562723a1af143c9e9509920d03d8231b8bf7 (patch) | |
tree | c81edec3fe54e220eb299846ede29618dd1544f2 | |
parent | e642825e281b7a9f259b8bc0b83b94a78b18a2c4 (diff) | |
download | rneovim-fba0562723a1af143c9e9509920d03d8231b8bf7.tar.gz rneovim-fba0562723a1af143c9e9509920d03d8231b8bf7.tar.bz2 rneovim-fba0562723a1af143c9e9509920d03d8231b8bf7.zip |
fix(syntax): correct conceal for annotated code blocks (#21272)
fixup for https://github.com/neovim/neovim/pull/21154
-rw-r--r-- | runtime/syntax/help.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/syntax/help.vim b/runtime/syntax/help.vim index c026c41799..8b469d7242 100644 --- a/runtime/syntax/help.vim +++ b/runtime/syntax/help.vim @@ -16,9 +16,9 @@ syn match helpSectionDelim "^===.*===$" syn match helpSectionDelim "^---.*--$" " Neovim: support language annotation in codeblocks if has("conceal") - syn region helpExample matchgroup=helpIgnore start=" >[a-z0-9]*$" start="^[a-z0-9]*>$" end="^[^ \t]"me=e-1 end="^<" concealends + syn region helpExample matchgroup=helpIgnore start=" >[a-z0-9]*$" start="^>[a-z0-9]*$" end="^[^ \t]"me=e-1 end="^<" concealends else - syn region helpExample matchgroup=helpIgnore start=" >[a-z0-9]*$" start="^[a-z0-9]*>$" end="^[^ \t]"me=e-1 end="^<" + syn region helpExample matchgroup=helpIgnore start=" >[a-z0-9]*$" start="^>[a-z0-9]*$" end="^[^ \t]"me=e-1 end="^<" endif syn match helpHyperTextJump "\\\@<!|[#-)!+-~]\+|" contains=helpBar syn match helpHyperTextEntry "\*[#-)!+-~]\+\*\s"he=e-1 contains=helpStar |