Version 188 screwed up the handling of quotes: \EOF is not supposed to
be interpreted as double quotes.

Because of that change all of these fail while they didn't before:

        # 07
        cat <<\
        EOF
        this is $double
        EOF

        # 11
        cat <<-\
        \EOF
        this is $single
        EOF

        # 14
        cat <<\EOF
        this is $single
        EOF

        # 15(16)
        cat <<-\EOF
        this is $single
        EOF

Signed-off-by: Felipe Contreras <[email protected]>
---
 runtime/syntax/sh.vim | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/runtime/syntax/sh.vim b/runtime/syntax/sh.vim
index b66805633..a15fe8fe3 100644
--- a/runtime/syntax/sh.vim
+++ b/runtime/syntax/sh.vim
@@ -396,23 +396,22 @@ syn match shBQComment     contained       "#.\{-}\ze`"    
contains=@shCommentGroup
 
 " Here Documents: {{{1
 " =========================================
-"  Note : shHereDoc0[137] only had shDblQuoteList contained
 ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc01 
start="<<\s*\\\=\z([^ \t|>]\+\)"             matchgroup=shHereDoc01 
end="^\z1\s*$"   contains=@shDblQuoteList
 ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc02 
start="<<\s*\"\z([^"]\+\)\""         matchgroup=shHereDoc02 end="^\z1\s*$"
 ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc03 start="<<-\s*\z([^ 
\t|>]\+\)"                matchgroup=shHereDoc03 end="^\s*\z1\s*$"        
contains=@shDblQuoteList
 ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc04 
start="<<-\s*'\z([^']\+\)'"          matchgroup=shHereDoc04 end="^\s*\z1\s*$"
 ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc05 
start="<<\s*'\z([^']\+\)'"           matchgroup=shHereDoc05 end="^\z1\s*$"
 ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc06 
start="<<-\s*\"\z([^"]\+\)\""                matchgroup=shHereDoc06 
end="^\s*\z1\s*$"
-ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc07 
start="<<\s*\\\_$\_s*\z([^ \t'"|>]\+\)"      matchgroup=shHereDoc07 
end="^\z1\s*$"
+ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc07 
start="<<\s*\\\_$\_s*\z([^ \t'"|>]\+\)"      matchgroup=shHereDoc07 
end="^\z1\s*$"   contains=@shDblQuoteList
 ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc08 
start="<<\s*\\\_$\_s*'\z([^\t|>]\+\)'"       matchgroup=shHereDoc08 
end="^\z1\s*$"
 ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc09 
start="<<\s*\\\_$\_s*\"\z([^\t|>]\+\)\""     matchgroup=shHereDoc09 
end="^\z1\s*$"
 ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc10 
start="<<-\s*\\\_$\_s*\z([^ \t|>]\+\)"       matchgroup=shHereDoc10 
end="^\s*\z1\s*$"
-ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc11 
start="<<-\s*\\\_$\_s*\\\z([^ \t|>]\+\)"     matchgroup=shHereDoc11 
end="^\s*\z1\s*$"        contains=@shDblQuoteList
+ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc11 
start="<<-\s*\\\_$\_s*\\\z([^ \t|>]\+\)"     matchgroup=shHereDoc11 
end="^\s*\z1\s*$"
 ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc12 
start="<<-\s*\\\_$\_s*'\z([^']\+\)'"         matchgroup=shHereDoc12 
end="^\s*\z1\s*$"
 ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc13 
start="<<-\s*\\\_$\_s*\"\z([^"]\+\)\""       matchgroup=shHereDoc13 
end="^\s*\z1\s*$"
-ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc14 start="<<\\\z([^ 
\t|>]\+\)"          matchgroup=shHereDoc14 end="^\z1\s*$"           
contains=@shDblQuoteList
-ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc15 start="<<-\s*\\\z([^ 
\t|>]\+\)"              matchgroup=shHereDoc15 end="^\s*\z1\s*$"        
contains=@shDblQuoteList
-ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc16 start="<<-\s*\\\z([^ 
\t|>]\+\)"              matchgroup=shHereDoc15 end="^\s*\z1\s*$"        
contains=@shDblQuoteList
+ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc14 start="<<\\\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*\\\z([^ 
\t|>]\+\)"              matchgroup=shHereDoc15 end="^\s*\z1\s*$"
 
 " Here Strings: {{{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-2-felipe.contreras%40gmail.com.

Raspunde prin e-mail lui