.vim/after/syntax/sh/custom.vim

changeset 744
7a5823050d74
parent 743
76c4c96d8b9f
child 745
dd23da749523
equal deleted inserted replaced
743:76c4c96d8b9f 744:7a5823050d74
1
2 let s:current_syntax = b:current_syntax
3 unlet b:current_syntax
4 syn include @Pod syntax/pod.vim
5 syn region shPOD start="^=pod" start="^=head" end="^=cut" keepend contained contains=@Pod
6 let b:current_syntax = s:current_syntax
7
8 syn region shPODHeredoc start="^:<<=cut" end="^=cut" keepend contains=shPOD
9
10 hi! def link shPOD Comment
11 hi! def link podCommand SpecialComment
12 hi! def link podCmdText Question
13 hi! def link podFormat StorageClass
14
15 map <F10> :echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") . '> trans<' . synIDattr(synID(line("."),col("."),0),"name") . "> lo<" . synIDattr(synIDtrans(synID(line("."),col("."),1)),"name") . ">"<CR>

mercurial