1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 13:30:05 +08:00
SpaceVim/bundle/vim-teal/plugin/teal.vim

28 lines
913 B
VimL
Raw Permalink Normal View History

2022-04-23 17:28:53 +08:00
function s:LoadPlugins()
if exists("g:loaded_matchit")
let b:match_ignorecase = 0
let b:match_words=
\ '\<\%(do\|enum\|record\|function\|if\)\>:' .
\ '\<\%(return\|else\|elseif\)\>:' .
\ '\<end\>,' .
\ '\<repeat\>:\<until\>'
endif
if exists("g:loaded_endwise")
let b:endwise_addition = 'end'
let b:endwise_words = 'function,do,then,enum,record'
let b:endwise_pattern = '\zs\<\%(then\|do\)\|\(\%(function\|record\|enum\).*\)\ze\s*$'
let b:endwise_syngroups = 'tealFunction,tealDoEnd,tealIfStatement,tealRecord,tealEnum'
endif
if exists("g:colors_name") && g:colors_name == "dracula"
hi! link tealTable DraculaFg
hi! link tealFunctionArgName DraculaOrangeItalic
hi! link tealSelf DraculaPurpleItalic
hi! link tealBuiltin DraculaCyan
hi! link tealGeneric DraculaOrangeItalic
endif
endfunction
autocmd FileType teal call s:LoadPlugins()