Improved trimming around = and : characters
This commit is contained in:
parent
a25bb6ad76
commit
93284608cc
@ -102,7 +102,8 @@ endfunction
|
|||||||
|
|
||||||
function! argwrap#trimArgument(text)
|
function! argwrap#trimArgument(text)
|
||||||
let l:trim = substitute(a:text, '^\s*\(.\{-}\)\s*$', '\1', '')
|
let l:trim = substitute(a:text, '^\s*\(.\{-}\)\s*$', '\1', '')
|
||||||
return substitute(l:trim, '\([:=]\)\s\{2,}', '\1 ', '')
|
let l:trim = substitute(l:trim, '\([:=]\)\s\{2,}', '\1 ', '')
|
||||||
|
return substitute(l:trim, '\s\{2,}\([:=]\)', ' \1', '')
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! argwrap#extractContainerArgs(text)
|
function! argwrap#extractContainerArgs(text)
|
||||||
|
Loading…
Reference in New Issue
Block a user