diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-04-13 20:37:35 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-04-13 20:37:35 +0000 |
commit | 7fc904b610d5739dd7b72fb2f6b0e4b330c97179 (patch) | |
tree | a7ea75d0ab26a753f13949e25e08e2c875b37d69 /runtime/syntax/sh.vim | |
parent | 18144c84231aee36ae1d11b74941c9b318f1706a (diff) | |
download | vim-git-7fc904b610d5739dd7b72fb2f6b0e4b330c97179.tar.gz |
updated for version 7.0d03v7.0d03
Diffstat (limited to 'runtime/syntax/sh.vim')
-rw-r--r-- | runtime/syntax/sh.vim | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/runtime/syntax/sh.vim b/runtime/syntax/sh.vim index b1aa1012d..2c53f9fa4 100644 --- a/runtime/syntax/sh.vim +++ b/runtime/syntax/sh.vim @@ -3,18 +3,17 @@ " Maintainer: Dr. Charles E. Campbell, Jr. <NdrOchipS@PcampbellAfamily.Mbiz> " Previous Maintainer: Lennart Schultz <Lennart.Schultz@ecmwf.int> " Last Change: Apr 12, 2006 -" Version: 83 +" Version: 84 " URL: http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax " " Using the following VIM variables: {{{1 -" b:is_kornshell if defined, enhance with kornshell/POSIX syntax -" b:is_bash if defined, enhance with bash syntax -" g:is_kornshell if neither b:is_kornshell or b:is_bash is -" defined, then if g:is_kornshell is set -" enhance with kornshell/POSIX syntax highlighting " g:is_bash if none of the previous three variables are " defined, then if g:is_bash is set enhance with " bash syntax highlighting +" g:is_kornshell if neither b:is_kornshell or b:is_bash is +" defined, then if g:is_kornshell is set +" enhance with kornshell/POSIX syntax highlighting +" g:is_posix this variable is the same as g:is_kornshell " g:sh_fold_enabled if non-zero, syntax folding is enabled " g:sh_minlines sets up syn sync minlines (dflt: 200) " g:sh_maxlines sets up syn sync maxlines (dflt: 2x sh_minlines) @@ -37,12 +36,15 @@ endif " a b:is_sh is converted into b:is_bash/b:is_kornshell, " respectively. if !exists("b:is_kornshell") && !exists("b:is_bash") - if exists("is_kornshell") + if exists("g:is_posix") && !exists("g:is_kornshell") + let g:is_kornshell= g:is_posix + endif + if exists("g:is_kornshell") let b:is_kornshell= 1 if exists("b:is_sh") unlet b:is_sh endif - elseif exists("is_bash") + elseif exists("g:is_bash") let b:is_bash= 1 if exists("b:is_sh") unlet b:is_sh |