From d63f0ac258e4f9f1ee3a1fcc0b9f7163779bdd0a Mon Sep 17 00:00:00 2001 From: "Andy K. Massimino" Date: Thu, 16 Nov 2017 15:57:04 -0500 Subject: [PATCH] Add \ze, \zs test case --- ftplugin/matchuptest.vim | 2 ++ test/augment.matchuptest | 2 +- test/zsze.matchuptest | 10 ++++++++++ 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 test/zsze.matchuptest diff --git a/ftplugin/matchuptest.vim b/ftplugin/matchuptest.vim index 25c6630..60a2063 100644 --- a/ftplugin/matchuptest.vim +++ b/ftplugin/matchuptest.vim @@ -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 .= ',\:\' + let b:match_words .= ',\:\' let b:match_skip = 'synIDattr(synID(line("."),col("."),1),"name") \ =~? "comment\\|string\\|vimSynReg\\|vimSet"' diff --git a/test/augment.matchuptest b/test/augment.matchuptest index e02f37b..af4e4b3 100644 --- a/test/augment.matchuptest +++ b/test/augment.matchuptest @@ -7,4 +7,4 @@ endfoobar " \<\(\(foo\)\(bar\)\):\3\2:end\1 -" vim: set ft=matchuptest +" vim: set ft=matchuptest : diff --git a/test/zsze.matchuptest b/test/zsze.matchuptest new file mode 100644 index 0000000..1ed8f78 --- /dev/null +++ b/test/zsze.matchuptest @@ -0,0 +1,10 @@ + +bazbar + +barbaz + +zabrab + +rabzab + +" vim: set ft=matchuptest :