Add \ze, \zs test case

This commit is contained in:
Andy K. Massimino
2017-11-16 15:57:04 -05:00
parent 44362650e7
commit d63f0ac258
3 changed files with 13 additions and 1 deletions

View File

@@ -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"'

View File

@@ -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
View File

@@ -0,0 +1,10 @@
bazbar
barbaz
zabrab
rabzab
" vim: set ft=matchuptest :