From 7eb01ae0daaefd68e0b7fe932c3181d508635439 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 30 Oct 2014 16:29:41 +1300 Subject: Exclude some builtins I added to sh.vim Refine previous commit a little to restore some of the weirdness I actually do like --- vim/after/syntax/sh.vim | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'vim/after/syntax') 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 -- cgit v1.2.3