mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 15:50:04 +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'
|
|
|