mirror of
https://github.com/neovim/neovim.git
synced 2026-04-28 10:14:06 +00:00
vim-patch:256972a
Updated runtime files.
256972a984
Missing files in runtime/doc: todo.txt, tags. Patch to runtime/doc/syntax.txt
was applied manually in part, for no discernible reason.
This commit is contained in:
@@ -55,14 +55,19 @@ function! s:Highlight_Matching_Pair()
|
||||
let before = 0
|
||||
|
||||
let text = getline(c_lnum)
|
||||
let c = text[c_col - 1]
|
||||
let matches = matchlist(text, '\(.\)\=\%'.c_col.'c\(.\)')
|
||||
if empty(matches)
|
||||
let [c_before, c] = ['', '']
|
||||
else
|
||||
let [c_before, c] = matches[1:2]
|
||||
endif
|
||||
let plist = split(&matchpairs, '.\zs[:,]')
|
||||
let i = index(plist, c)
|
||||
if i < 0
|
||||
" not found, in Insert mode try character before the cursor
|
||||
if c_col > 1 && (mode() == 'i' || mode() == 'R')
|
||||
let before = 1
|
||||
let c = text[c_col - 2]
|
||||
let before = strlen(c_before)
|
||||
let c = c_before
|
||||
let i = index(plist, c)
|
||||
endif
|
||||
if i < 0
|
||||
|
||||
Reference in New Issue
Block a user