From 98e19b3fb954c63b77c9b6fe8f38c0a2c7c5627f Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 8 Nov 2017 13:08:10 +1300 Subject: 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. --- vim/after/syntax/sh.vim | 3 +++ 1 file changed, 3 insertions(+) (limited to 'vim/after/syntax') 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 -- cgit v1.2.3