0
0
mirror of https://github.com/vim/vim.git synced 2025-11-15 23:14:06 -05:00

updated for version 7.3.1086

Problem:    Old regexp engine accepts illegal range, new one doesn't.
Solution:   Also accept the illegal range with the new engine.
This commit is contained in:
Bram Moolenaar
2013-06-01 13:24:24 +02:00
parent 36b3a011d3
commit 75d7a06920
4 changed files with 14 additions and 10 deletions

View File

@@ -270,6 +270,7 @@ STARTTEST
:call add(tl, [2, '\_[0-9]\+', "asfi\n9888u", "\n9888"])
:call add(tl, [2, '\_f', " \na ", "\n"])
:call add(tl, [2, '\_f\+', " \na ", "\na"])
:call add(tl, [2, '[0-9A-Za-z-_.]\+', " @0_a.A-{ ", "0_a.A-"])
:"
:"""" Test start/end of line, start/end of file
:call add(tl, [2, '^a.', "a_\nb ", "a_"])

View File

@@ -605,6 +605,9 @@ OK 2 - \_f
OK 0 - \_f\+
OK 1 - \_f\+
OK 2 - \_f\+
OK 0 - [0-9A-Za-z-_.]\+
OK 1 - [0-9A-Za-z-_.]\+
OK 2 - [0-9A-Za-z-_.]\+
OK 0 - ^a.
OK 1 - ^a.
OK 2 - ^a.