diff options
Diffstat (limited to 'vim/after')
-rw-r--r-- | vim/after/ftplugin/sh.vim | 3 | ||||
-rw-r--r-- | vim/after/syntax/sh.vim | 12 |
2 files changed, 12 insertions, 3 deletions
diff --git a/vim/after/ftplugin/sh.vim b/vim/after/ftplugin/sh.vim index 7ded5134..e7bd21dc 100644 --- a/vim/after/ftplugin/sh.vim +++ b/vim/after/ftplugin/sh.vim @@ -24,7 +24,8 @@ let b:undo_ftplugin .= '|unlet b:current_compiler b:sh_check_compiler' " Resort to g:is_posix for correct syntax on older runtime files " 8.1.257 updated the runtime files to include a fix for this if exists('b:is_posix') - \ && (v:version < 800 || v:version == 800 && !has('patch257')) + \ && (v:version < 800 + \ || v:version == 800 && !has('patch257')) let is_posix = 1 endif diff --git a/vim/after/syntax/sh.vim b/vim/after/syntax/sh.vim index 797bdab9..af7670d5 100644 --- a/vim/after/syntax/sh.vim +++ b/vim/after/syntax/sh.vim @@ -133,11 +133,19 @@ if exists('b:is_posix') \ nextgroup=@shDerefPatternList syntax match shDerefPattern contained \ '[^{}]\+' - \ contains=shDeref,shDerefSimple,shDerefPattern,shDerefString,shCommandSub,shDerefEscape + \ contains=shDeref + \,shCommandSub + \,shDerefEscape + \,shDerefPattern + \,shDerefSimple + \,shDerefString \ nextgroup=shDerefPattern syntax region shDerefPattern contained \ start='{' end='}' - \ contains=shDeref,shDerefSimple,shDerefString,shCommandSub + \ contains=shDeref + \,shCommandSub + \,shDerefSimple + \,shDerefString \ nextgroup=shDerefPattern endif |