~gpanders/dotfiles

ref: 1e9f8dd001f12b57c7ff1b45adb7c59541b752c6 dotfiles/.vim/after/syntax/sh/awkembed.vim -rw-r--r-- 558 bytes
1e9f8dd0 — Gregory Anders fish: remove fuzzy finder from buku alias 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
" AWK Embedding:
" ==============
" Shamelessly ripped from aspperl.vim by Aaron Hope.
"
" See :h sh-awk
if exists('b:current_syntax')
    unlet b:current_syntax
endif

syn include @AWKScript syntax/awk.vim
syn region AWKScriptCode matchgroup=AWKCommand start=+[=\\]\@<!'+ skip=+\\'+ end=+'+ contains=@AWKScript contained
syn region AWKScriptEmbedded matchgroup=AWKCommand start=+\<awk\>+ skip=+\\$+ end=+[=\\]\@<!'+me=e-1 contains=@shIdList,@shExprList2 nextgroup=AWKScriptCode
syn cluster shCommandSubList add=AWKScriptEmbedded
hi def link AWKCommand Type