aboutsummaryrefslogtreecommitdiff
path: root/vim/after/syntax
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2014-10-30 16:29:41 +1300
committerTom Ryder <tom@sanctum.geek.nz>2014-10-30 16:29:41 +1300
commit7eb01ae0daaefd68e0b7fe932c3181d508635439 (patch)
tree53ce048057fb3a2a4430f0e3e92d0e8a9b63289c /vim/after/syntax
parentFix a few more annoyances in sh.vim syntax (diff)
downloaddotfiles-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.vim9
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