diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-06-05 11:05:17 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-06-05 11:05:17 +0200 |
commit | d75799ab7f712738795919005046b15d6ac356f8 (patch) | |
tree | 5a642158545745331102c1b907a0baf9a21a7b1c /src/testdir/test64.in | |
parent | 78eae9aaf7d73ab676d7adecb77765834dccc460 (diff) | |
download | vim-git-d75799ab7f712738795919005046b15d6ac356f8.tar.gz |
updated for version 7.3.1117v7.3.1117
Problem: New regexp engine: \%[abc] not supported.
Solution: Implement \%[abc]. Add tests.
Diffstat (limited to 'src/testdir/test64.in')
-rw-r--r-- | src/testdir/test64.in | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/testdir/test64.in b/src/testdir/test64.in index 65b4e33d7..062d9baa8 100644 --- a/src/testdir/test64.in +++ b/src/testdir/test64.in @@ -352,6 +352,19 @@ STARTTEST :call add(tl, [2, '\%u0020', 'yes no', ' ']) :call add(tl, [2, '\%U00000020', 'yes no', ' ']) :" +:""""" \%[abc] +:call add(tl, [2, 'foo\%[bar]', 'fobar']) +:call add(tl, [2, 'foo\%[bar]', 'foobar', 'foobar']) +:call add(tl, [2, 'foo\%[bar]', 'fooxx', 'foo']) +:call add(tl, [2, 'foo\%[bar]', 'foobxx', 'foob']) +:call add(tl, [2, 'foo\%[bar]', 'foobaxx', 'fooba']) +:call add(tl, [2, 'foo\%[bar]', 'foobarxx', 'foobar']) +:call add(tl, [2, 'foo\%[bar]x', 'foobxx', 'foobx']) +:call add(tl, [2, 'foo\%[bar]x', 'foobarxx', 'foobarx']) +:call add(tl, [2, '\%[bar]x', 'barxx', 'barx']) +:call add(tl, [2, '\%[bar]x', 'bxx', 'bx']) +:call add(tl, [2, '\%[bar]x', 'xxx', 'x']) +:" :"""" Alternatives, must use first longest match :call add(tl, [2, 'goo\|go', 'google', 'goo']) :call add(tl, [2, '\<goo\|\<go', 'google', 'goo']) |