The unshifted version of shHereDoc11 was missing, so this fails:
cat <<\
\EOF
this is $single
EOF
Signed-off-by: Felipe Contreras <[email protected]>
---
runtime/syntax/sh.vim | 3 +++
1 file changed, 3 insertions(+)
diff --git a/runtime/syntax/sh.vim b/runtime/syntax/sh.vim
index 531498701..2173f7539 100644
--- a/runtime/syntax/sh.vim
+++ b/runtime/syntax/sh.vim
@@ -411,6 +411,8 @@ ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc12
start="<<-\s*\\\_$\_s*
ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc13
start="<<-\s*\\\_$\_s*\"\z([^"]\+\)\"" matchgroup=shHereDoc13
end="^\s*\z1\s*$"
ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc14 start="<<\s*\\\z([^
\t|>]\+\)" matchgroup=shHereDoc14 end="^\z1\s*$"
ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc15 start="<<-\s*\\\z([^
\t|>]\+\)" matchgroup=shHereDoc15 end="^\s*\z1\s*$"
+ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc16
start="<<\s*\\\_$\_s*\\\z([^ \t|>]\+\)" matchgroup=shHereDoc16
end="^\z1\s*$"
+
" Here Strings: {{{1
" =============
@@ -754,6 +756,7 @@ if !exists("skip_sh_syntax_inits")
hi def link shHereDoc13 shRedir
hi def link shHereDoc14 shRedir
hi def link shHereDoc15 shRedir
+ hi def link shHereDoc16 shRedir
endif
" Delete shell folding commands {{{1
--
2.28.0
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/20201019121608.70389-8-felipe.contreras%40gmail.com.