Otherwise code such as:

  cat <<-\EOF
  $foobar
  EOF

Is not matched properly, as vim assumes the delimiter is '\EOF', when in
fact it's 'EOF'.

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

diff --git a/runtime/syntax/sh.vim b/runtime/syntax/sh.vim
index d9d7606..8caa81f 100644
--- a/runtime/syntax/sh.vim
+++ b/runtime/syntax/sh.vim
@@ -361,6 +361,8 @@ elseif s:sh_fold_heredoc
  syn region shHereDoc matchgroup=shRedir17 fold start="<<-\s*\\\_$\_s*\"\z([^ 
\t|]\+\)\""      matchgroup=shRedir17 end="^\s*\z1\s*$"
  syn region shHereDoc matchgroup=shRedir18 fold start="<<\s*\\\_$\_s*'\z([^ 
\t|]\+\)'" matchgroup=shRedir18 end="^\z1\s*$"
  syn region shHereDoc matchgroup=shRedir19 fold start="<<\\\z([^ \t|]\+\)"     
        matchgroup=shRedir19 end="^\z1\s*$"
+ syn region shHereDoc matchgroup=shRedir33 fold start="<<-\s*\\\z([^ \t|]\+\)" 
        matchgroup=shRedir33 end="^\s*\z1\s*$"
+ syn region shHereDoc matchgroup=shRedir34 fold start="<<-\s*\\\_$\_s*\\\z([^ 
\t|]\+\)"        matchgroup=shRedir34 end="^\s*\z1\s*$"
 
 else
  syn region shHereDoc matchgroup=shRedir20 start="<<\s*\\\=\z([^ \t|]\+\)"     
        matchgroup=shRedir20 end="^\z1\s*$"     contains=@shDblQuoteList
@@ -376,6 +378,8 @@ else
  syn region shHereDoc matchgroup=shRedir30 start="<<\s*\\\_$\_s*\"\z([^ 
\t|]\+\)\""    matchgroup=shRedir30 end="^\z1\s*$"
  syn region shHereDoc matchgroup=shRedir31 start="<<-\s*\\\_$\_s*\"\z([^ 
\t|]\+\)\""   matchgroup=shRedir31 end="^\s*\z1\s*$"
  syn region shHereDoc matchgroup=shRedir32 start="<<\\\z([^ \t|]\+\)"          
matchgroup=shRedir32 end="^\z1\s*$"
+ syn region shHereDoc matchgroup=shRedir35 start="<<-\s*\\\z([^ \t|]\+\)"      
        matchgroup=shRedir35 end="^\s*\z1\s*$"
+ syn region shHereDoc matchgroup=shRedir36 start="<<-\s*\\\_$\_s*\\\z([^ 
\t|]\+\)"     matchgroup=shRedir36 end="^\s*\z1\s*$"
 endif
 
 " Here Strings: {{{1
@@ -692,6 +696,10 @@ hi def link shRedir29              shRedir
 hi def link shRedir30          shRedir
 hi def link shRedir31          shRedir
 hi def link shRedir32          shRedir
+hi def link shRedir33          shRedir
+hi def link shRedir34          shRedir
+hi def link shRedir35          shRedir
+hi def link shRedir36          shRedir
 
 " Set Current Syntax: {{{1
 " ===================
-- 
1.9.3+fc1~5~gfaddd51

-- 
-- 
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].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui