mirror of
https://github.com/chenasraf/vim-matchup.git
synced 2026-05-17 17:38:01 +00:00
Add \ze, \zs test case
This commit is contained in:
@@ -25,6 +25,8 @@ if exists("loaded_matchit")
|
||||
" bad: let b:match_words = '\(foo\)\(bar\):more\1:and\2:end\1\2'
|
||||
" good:
|
||||
let b:match_words = '\<\(\(foo\)\(bar\)\):\3\2:end\1'
|
||||
let b:match_words .= ',\<baz\zebar\>:\<barbaz\>'
|
||||
let b:match_words .= ',\<zab\zsrab\>:\<rabzab\>'
|
||||
|
||||
let b:match_skip = 'synIDattr(synID(line("."),col("."),1),"name")
|
||||
\ =~? "comment\\|string\\|vimSynReg\\|vimSet"'
|
||||
|
||||
@@ -7,4 +7,4 @@ endfoobar
|
||||
|
||||
" \<\(\(foo\)\(bar\)\):\3\2:end\1
|
||||
|
||||
" vim: set ft=matchuptest
|
||||
" vim: set ft=matchuptest :
|
||||
|
||||
10
test/zsze.matchuptest
Normal file
10
test/zsze.matchuptest
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
bazbar
|
||||
|
||||
barbaz
|
||||
|
||||
zabrab
|
||||
|
||||
rabzab
|
||||
|
||||
" vim: set ft=matchuptest :
|
||||
Reference in New Issue
Block a user