diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-08-01 18:38:26 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-08-01 18:38:26 +0200 |
commit | eec3e1e72a3d4e31c9b9546cd62fcff69c12ce29 (patch) | |
tree | be36ea942999b8de83669c0716c7c8b1e26f02b6 /src/testdir | |
parent | 6dbe68cd9ec2e8904ecf5da9f2e729835bfd0329 (diff) | |
download | vim-git-eec3e1e72a3d4e31c9b9546cd62fcff69c12ce29.tar.gz |
updated for version 7.4b.004v7.4b.004
Problem: Regexp crash on pattern "@\%[\w\-]*". (Axel Kielhorn)
Solution: Add \%(\) around \%[] internally.
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test64.in | 1 | ||||
-rw-r--r-- | src/testdir/test64.ok | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/testdir/test64.in b/src/testdir/test64.in index e666ab95a..b0b1c911a 100644 --- a/src/testdir/test64.in +++ b/src/testdir/test64.in @@ -373,6 +373,7 @@ STARTTEST :call add(tl, [2, '\%[bar]x', 'xxx', 'x']) :call add(tl, [2, 'b\%[[ao]r]', 'bar bor', 'bar']) :call add(tl, [2, 'b\%[[]]r]', 'b]r bor', 'b]r']) +:call add(tl, [2, '@\%[\w\-]*', '<http://john.net/pandoc/>[@pandoc]', '@pandoc']) :" :"""" Alternatives, must use first longest match :call add(tl, [2, 'goo\|go', 'google', 'goo']) diff --git a/src/testdir/test64.ok b/src/testdir/test64.ok index c778e9eef..2df568d9b 100644 --- a/src/testdir/test64.ok +++ b/src/testdir/test64.ok @@ -857,6 +857,9 @@ OK 2 - b\%[[ao]r] OK 0 - b\%[[]]r] OK 1 - b\%[[]]r] OK 2 - b\%[[]]r] +OK 0 - @\%[\w\-]* +OK 1 - @\%[\w\-]* +OK 2 - @\%[\w\-]* OK 0 - goo\|go OK 1 - goo\|go OK 2 - goo\|go |