Blame vim-sh-syntax.patch
|
Zdenek Dohnal |
0849f8 |
diff --git a/runtime/syntax/sh.vim b/runtime/syntax/sh.vim
|
|
Zdenek Dohnal |
0849f8 |
index 13d74db..4f7fafb 100644
|
|
Zdenek Dohnal |
0849f8 |
--- a/runtime/syntax/sh.vim
|
|
Zdenek Dohnal |
0849f8 |
+++ b/runtime/syntax/sh.vim
|
|
Zdenek Dohnal |
0849f8 |
@@ -335,7 +335,7 @@ syn match shEscape contained '\%(^\)\@!\%(\\\\\)*\\.' nextgroup=shComment
|
|
Zdenek Dohnal |
0849f8 |
" systems too, however, so the following syntax will flag $(..) as
|
|
Zdenek Dohnal |
0849f8 |
" an Error under /bin/sh. By consensus of vimdev'ers!
|
|
Zdenek Dohnal |
0849f8 |
if exists("b:is_kornshell") || exists("b:is_bash") || exists("b:is_posix")
|
|
Zdenek Dohnal |
0849f8 |
- syn region shCommandSub matchgroup=shCmdSubRegion start="\$(\ze[^(]\|$" skip='\\\\\|\\.' end=")" contains=@shCommandSubList
|
|
Zdenek Dohnal |
0849f8 |
+ syn region shCommandSub matchgroup=shCmdSubRegion start="\$(\ze[^(]" skip='\\\\\|\\.' end=")" contains=@shCommandSubList
|
|
Zdenek Dohnal |
0849f8 |
syn region shArithmetic matchgroup=shArithRegion start="\$((" skip='\\\\\|\\.' end="))" contains=@shArithList
|
|
Zdenek Dohnal |
0849f8 |
syn region shArithmetic matchgroup=shArithRegion start="\$\[" skip='\\\\\|\\.' end="\]" contains=@shArithList
|
|
Zdenek Dohnal |
0849f8 |
syn match shSkipInitWS contained "^\s\+"
|