diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-08 13:08:10 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-08 13:08:10 +1300 |
commit | 98e19b3fb954c63b77c9b6fe8f38c0a2c7c5627f (patch) | |
tree | 5db92ec775a92604c58cd835f241c4b9dc70f5b9 /vim/after | |
parent | Add `kill` as shStatement (diff) | |
download | dotfiles-98e19b3fb954c63b77c9b6fe8f38c0a2c7c5627f.tar.gz dotfiles-98e19b3fb954c63b77c9b6fe8f38c0a2c7c5627f.zip |
Add clustering for POSIX shell syntax groups
This is what was missing after I initially redefined these groups and
stopped all POSIX shell scripts thinking they were POSIX. The words now
highlight correctly when within control structures again.
Diffstat (limited to 'vim/after')
-rw-r--r-- | vim/after/syntax/sh.vim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vim/after/syntax/sh.vim b/vim/after/syntax/sh.vim index 41ec27b4..ba209e99 100644 --- a/vim/after/syntax/sh.vim +++ b/vim/after/syntax/sh.vim @@ -26,6 +26,8 @@ if exists('b:is_posix') " list was mostly wrested from `man 1 dash`. Also include control structure " keywords like `break`, `continue`, and `return`. syntax clear shStatement + syntax cluster shCommandSubList add=shStatement + syntax cluster shCaseList add=shStatement syntax keyword shStatement \ alias \ bg @@ -66,6 +68,7 @@ if exists('b:is_posix') " (and plain Bourne). These are selected by searching the POSIX manpages. I " added NLSPATH too, which wasn't in the original. syntax clear shShellVariables + syntax cluster shCommandSubList add=shShellVariables syntax keyword shShellVariables \ CDPATH \ ENV |