On 03/22/2015 15:37, Yuri wrote:
I suggest, you add this patch.
Actually no, this patch breaks $(cmd ...) syntax. Somebody needs to look
into why b:is_kornshell should come into play for bourne shell syntax.
Or just replace "b:is_sh" in my patch with "b:is_kornshell", as a
quick-n-dirty-hack. See another attached patch.
I don't know much about kornshell, but since it is backwards compatible
with bourne shell, this patch might be a fix of the same problem there too.
Yuri
--
--
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.
--- /usr/local/share/vim/vim74/syntax/sh.vim.orig 2015-03-22 14:52:39.855896000 -0700
+++ /usr/local/share/vim/vim74/syntax/sh.vim 2015-03-22 15:46:06.325491000 -0700
@@ -246,7 +246,7 @@
syn region shCaseEsac matchgroup=shConditional start="\<case\>" end="\<esac\>" contains=@shCaseEsacList
endif
syn keyword shCaseIn contained skipwhite skipnl in nextgroup=shCase,shCaseStart,shCaseBar,shComment,shCaseExSingleQuote,shCaseSingleQuote,shCaseDoubleQuote
-if exists("b:is_bash")
+if exists("b:is_bash") || exists("g:is_kornshell")
syn region shCaseExSingleQuote matchgroup=shQuote start=+\$'+ skip=+\\\\\|\\.+ end=+'+ contains=shStringSpecial,shSpecial skipwhite skipnl nextgroup=shCaseBar contained
elseif !exists("g:sh_no_error")
syn region shCaseExSingleQuote matchgroup=Error start=+\$'+ skip=+\\\\\|\\.+ end=+'+ contains=shStringSpecial skipwhite skipnl nextgroup=shCaseBar contained
@@ -312,7 +312,7 @@
if exists("b:is_bash")
syn match shSpecial "\\\o\o\o\|\\x\x\x\|\\c[^"]\|\\[abefnrtv]" contained
endif
-if exists("b:is_bash")
+if exists("b:is_bash") || exists("g:is_kornshell")
syn region shExSingleQuote matchgroup=shQuote start=+\$'+ skip=+\\\\\|\\.+ end=+'+ contains=shStringSpecial,shSpecial
syn region shExDoubleQuote matchgroup=shQuote start=+\$"+ skip=+\\\\\|\\.\|\\"+ end=+"+ contains=@shDblQuoteList,shStringSpecial,shSpecial
elseif !exists("g:sh_no_error")