diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-16 09:29:45 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-16 09:29:45 +1300 |
commit | c507c6bf0dc009fec7b7d4618881c6871c8c3c3b (patch) | |
tree | d60ba72ec41aa67cef3cc66c1ee0a00690c2d6f0 | |
parent | Merge branch 'feature/vim-plug-dist' into develop (diff) | |
parent | Use single-quotes for strings in sh.vim (diff) | |
download | dotfiles-c507c6bf0dc009fec7b7d4618881c6871c8c3c3b.tar.gz dotfiles-c507c6bf0dc009fec7b7d4618881c6871c8c3c3b.zip |
Merge branch 'feature/vim-sh' into develop
* feature/vim-sh:
Use single-quotes for strings in sh.vim
Use full word "syntax" in sh.vim
-rw-r--r-- | vim/after/syntax/sh.vim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vim/after/syntax/sh.vim b/vim/after/syntax/sh.vim index 4d56d3a8..08dbd857 100644 --- a/vim/after/syntax/sh.vim +++ b/vim/after/syntax/sh.vim @@ -111,7 +111,7 @@ if exists('b:is_posix') syntax clear shRepeat syntax region shRepeat \ matchgroup=shLoop - \ start="\<while\_s" end="\<do\>"me=e-2 + \ start='\<while\_s' end='\<do\>'me=e-2 \ contains=@shLoopList " Run some clustering that core syntax/sh.vim thinks doesn't apply to POSIX; @@ -122,14 +122,14 @@ if exists('b:is_posix') " ${foo%bar}, ${foo%%bar}, ${foo#bar}, and ${foo##bar} are all valid forms " of parameter expansion in POSIX, but sh.vim makes them conditional on " Bash or Korn shell. We reinstate them (slightly adapted) here. - syn match shDerefOp contained + syntax match shDerefOp contained \ '##\|#\|%%\|%' \ nextgroup=@shDerefPatternList - syn match shDerefPattern contained + syntax match shDerefPattern contained \ '[^{}]\+' \ contains=shDeref,shDerefSimple,shDerefPattern,shDerefString,shCommandSub,shDerefEscape \ nextgroup=shDerefPattern - syn region shDerefPattern contained + syntax region shDerefPattern contained \ start='{' end='}' \ contains=shDeref,shDerefSimple,shDerefString,shCommandSub \ nextgroup=shDerefPattern |