diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2014-10-30 16:29:41 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2014-10-30 16:29:41 +1300 |
commit | 7eb01ae0daaefd68e0b7fe932c3181d508635439 (patch) | |
tree | 53ce048057fb3a2a4430f0e3e92d0e8a9b63289c /vim/after/syntax | |
parent | Fix a few more annoyances in sh.vim syntax (diff) | |
download | dotfiles-7eb01ae0daaefd68e0b7fe932c3181d508635439.tar.gz dotfiles-7eb01ae0daaefd68e0b7fe932c3181d508635439.zip |
Exclude some builtins I added to sh.vim
Refine previous commit a little to restore some of the weirdness I
actually do like
Diffstat (limited to 'vim/after/syntax')
-rw-r--r-- | vim/after/syntax/sh.vim | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/vim/after/syntax/sh.vim b/vim/after/syntax/sh.vim index a3aa222c..be7a8cf5 100644 --- a/vim/after/syntax/sh.vim +++ b/vim/after/syntax/sh.vim @@ -14,7 +14,9 @@ syntax clear shDerefWordError " I don't like having 'restart', 'start" etc highlighted syntax clear bashAdminStatement -" Limit bashStatement only to alphanumeric shell builtins +" Limit bashStatement only to alphanumeric shell builtins, except for the ones +" that declare variables (declare, typeset, local, export, unset) as they're +" used in shSetList syntax clear bashStatement syntax keyword bashStatement \ alias @@ -29,7 +31,6 @@ syntax keyword bashStatement \ complete \ compopt \ continue - \ declare \ dirs \ disown \ echo @@ -37,7 +38,6 @@ syntax keyword bashStatement \ eval \ exec \ exit - \ export \ false \ fc \ fg @@ -48,7 +48,6 @@ syntax keyword bashStatement \ jobs \ kill \ let - \ local \ logout \ mapfile \ popd @@ -69,10 +68,8 @@ syntax keyword bashStatement \ trap \ true \ type - \ typeset \ ulimit \ umask \ unalias - \ unset \ wait |