1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 12:40:05 +08:00
SpaceVim/bundle/vim-matchup/test/issues/3/hotfix.vim

17 lines
487 B
VimL
Raw Normal View History

2020-06-13 14:06:35 +08:00
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'