sh.vim (516B)
1 if exists("b:current_syntax") 2 unlet b:current_syntax 3 endif 4 syn match TrailSpace "[[:space:]]*$" 5 syn include @AWKScript syntax/awk.vim 6 syn region AWKScriptCode matchgroup=AWKCommand start=+[=\\]\@<!'+ skip=+\\'+ end=+'+ contains=@AWKScript contained 7 syn region AWKScriptEmbedded matchgroup=AWKCommand start=+\<awk\>+ skip=+\\$+ end=+[=\\]\@<!'+me=e-1 contains=@shIdList,@shExprList2 nextgroup=AWKScriptCode 8 syn cluster shCommandSubList add=AWKScriptEmbedded 9 hi def link AWKCommand statement 10 hi link TrailSpace error