Fixes #229 triple quote stopped working
This commit is contained in:
parent
43db4c1776
commit
179520e690
@ -211,6 +211,9 @@ func! AutoPairsInsert(key)
|
|||||||
" check open pairs
|
" check open pairs
|
||||||
let text=before.a:key
|
let text=before.a:key
|
||||||
for [open, close] in b:AutoPairsList
|
for [open, close] in b:AutoPairsList
|
||||||
|
if open == close && open == "'"
|
||||||
|
let open = '\v(^|\W)\zs'''
|
||||||
|
end
|
||||||
let m = s:matchend(text, open)
|
let m = s:matchend(text, open)
|
||||||
if len(m) > 0
|
if len(m) > 0
|
||||||
" process the open pair
|
" process the open pair
|
||||||
@ -441,9 +444,6 @@ func! AutoPairsInit()
|
|||||||
|
|
||||||
" buffer level map pairs keys
|
" buffer level map pairs keys
|
||||||
for [open, close] in items(b:AutoPairs)
|
for [open, close] in items(b:AutoPairs)
|
||||||
if open == close && open == "'"
|
|
||||||
let open = '\v(^|\W)\zs'''
|
|
||||||
end
|
|
||||||
let o = open[len(open)-1]
|
let o = open[len(open)-1]
|
||||||
let m = matchlist(close, '\v(.*)//(.*)$')
|
let m = matchlist(close, '\v(.*)//(.*)$')
|
||||||
let mapclose = 1
|
let mapclose = 1
|
||||||
|
Loading…
Reference in New Issue
Block a user