mirror of
https://github.com/jiangmiao/auto-pairs.git
synced 2025-04-22 13:18:45 +08:00
Update auto-pairs.vim
This commit is contained in:
parent
39f06b873a
commit
5f254b3c31
@ -21,9 +21,12 @@ func! AutoPairsDefaultPairs()
|
||||
if exists('b:autopairs_defaultpairs')
|
||||
return b:autopairs_defaultpairs
|
||||
end
|
||||
" Added a more complex regex to capture in-line VimL comments
|
||||
let no_quotes = '(\\\"|[^"])*'
|
||||
let com_inl = '|^("'.no_quotes.'"*|[^"])* \zs"\ze'.no_quotes.'$'
|
||||
let r = copy(g:AutoPairs)
|
||||
let allPairs = {
|
||||
\ 'vim': {'\v^\s*\zs"': ''},
|
||||
\ 'vim': {'\v^\s*\zs"'.com_inl: ''},
|
||||
\ 'rust': {'\w\zs<': '>', '&\zs''': ''},
|
||||
\ 'php': {'<?': '?>//k]', '<?php': '?>//k]'}
|
||||
\ }
|
||||
|
Loading…
x
Reference in New Issue
Block a user