mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 19:00:06 +08:00
17 lines
487 B
VimL
17 lines
487 B
VimL
|
|
||
|
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'
|
||
|
|