mirror of
https://github.com/vim/vim.git
synced 2025-11-14 23:04:02 -05:00
updated for version 7.3.1247
Problem: New regexp engine: '[ ]\@!\p\%([ ]\@!\p\)*:' does not always match.
Solution: When there is a PIM add a duplicate state that starts at another
position.
This commit is contained in:
@@ -338,6 +338,7 @@ STARTTEST
|
||||
:call add(tl, [2, '^\%(.*bar\)\@!.*\zsfoo', ' bar foo '])
|
||||
:call add(tl, [2, '^\%(.*bar\)\@!.*\zsfoo', ' foo bar '])
|
||||
:call add(tl, [2, '^\%(.*bar\)\@!.*\zsfoo', ' foo xxx ', 'foo'])
|
||||
:call add(tl, [2, '[ ]\@!\p\%([ ]\@!\p\)*:', 'implicit mappings:', 'mappings:'])
|
||||
:"
|
||||
:"""" Combining different tests and features
|
||||
:call add(tl, [2, '[[:alpha:]]\{-2,6}', '787abcdiuhsasiuhb4', 'ab'])
|
||||
|
||||
@@ -770,6 +770,9 @@ OK 2 - ^\%(.*bar\)\@!.*\zsfoo
|
||||
OK 0 - ^\%(.*bar\)\@!.*\zsfoo
|
||||
OK 1 - ^\%(.*bar\)\@!.*\zsfoo
|
||||
OK 2 - ^\%(.*bar\)\@!.*\zsfoo
|
||||
OK 0 - [ ]\@!\p\%([ ]\@!\p\)*:
|
||||
OK 1 - [ ]\@!\p\%([ ]\@!\p\)*:
|
||||
OK 2 - [ ]\@!\p\%([ ]\@!\p\)*:
|
||||
OK 0 - [[:alpha:]]\{-2,6}
|
||||
OK 1 - [[:alpha:]]\{-2,6}
|
||||
OK 2 - [[:alpha:]]\{-2,6}
|
||||
|
||||
Reference in New Issue
Block a user