1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 16:00:07 +08:00
SpaceVim/bundle/vim-matchup/test/issues/3/hotfix.vim
2020-06-13 14:06:35 +08:00

17 lines
487 B
VimL
Vendored

function! SQLHotFix()
call matchup#util#patch_match_words(
\ '\%(\<create\s\+\%(or\s\+replace\s\+\)\?\)\?'
\ . '\%(function\|procedure\|event\)'
\ . ':\<returns\?\>',
\ '\%(\<create\s\+\%(or\s\+replace\s\+\)\?\)'
\ . '\%(function\|procedure\|event\)'
\ . ':\<returns\>'
\ . ':\<return\s\+\%(next\|query\)\>'
\ . ':\<return\>\ze\%(\s\+next\)\@!\%(.\|$\)'
\)
endfunction
let g:matchup_hotfix_sql = 'SQLHotFix'