# HG changeset patch # User Meredith Howard # Date 1470274595 14400 # Node ID 394bcf0d5bac476efb93cf0aa87f0d6af2591d04 # Parent 7c5b0e94b399c8f073ae4a9889853851fc3dfaaa add POD highlighting for shell diff --git a/.vim/after/syntax/sh/custom.vim b/.vim/after/syntax/sh/custom.vim new file mode 100644 --- /dev/null +++ b/.vim/after/syntax/sh/custom.vim @@ -0,0 +1,15 @@ + +let s:current_syntax = b:current_syntax +unlet b:current_syntax +syn include @Pod syntax/pod.vim +syn region shPOD start="^=pod" start="^=head" end="^=cut" keepend contained contains=@Pod +let b:current_syntax = s:current_syntax + +syn region shPODHeredoc start="^:<<=cut" end="^=cut" keepend contains=shPOD + +hi! def link shPOD Comment +hi! def link podCommand SpecialComment +hi! def link podCmdText Question +hi! def link podFormat StorageClass + +map :echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") . '> trans<' . synIDattr(synID(line("."),col("."),0),"name") . "> lo<" . synIDattr(synIDtrans(synID(line("."),col("."),1)),"name") . ">"