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 :