From 6b502d0bd300d9df1150a1e8f6c9c974d3d75b5b Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 8 Nov 2017 13:07:14 +1300 Subject: Add `break`, `continue`, `return` as shStatement --- vim/after/syntax/sh.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3