diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-08 13:07:14 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-08 13:07:14 +1300 |
commit | 6b502d0bd300d9df1150a1e8f6c9c974d3d75b5b (patch) | |
tree | d7e667829b0efb758224081d47f73ec3ea45aee9 /vim/after | |
parent | Override commands and variables for syntax/sh.vim (diff) | |
download | dotfiles-6b502d0bd300d9df1150a1e8f6c9c974d3d75b5b.tar.gz dotfiles-6b502d0bd300d9df1150a1e8f6c9c974d3d75b5b.zip |
Add `break`, `continue`, `return` as shStatement
Diffstat (limited to 'vim/after')
-rw-r--r-- | vim/after/syntax/sh.vim | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/vim/after/syntax/sh.vim b/vim/after/syntax/sh.vim index 9692ea9f..99c0cc3a 100644 --- a/vim/after/syntax/sh.vim +++ b/vim/after/syntax/sh.vim @@ -23,13 +23,16 @@ if exists('b:is_posix') " Highlight some commands that are both defined by POSIX and builtin " commands in dash, as a rough but useable proxy for 'shell builtins'. This - " list was wrested from `man 1 dash`. + " list was mostly wrested from `man 1 dash`. Also include control structure + " keywords like `break`, `continue`, and `return`. syntax clear shStatement syntax keyword shStatement \ alias \ bg + \ break \ cd \ command + \ continue \ echo \ eval \ exec @@ -43,6 +46,7 @@ if exists('b:is_posix') \ pwd \ read \ readonly + \ return \ set \ shift \ test |