mirror of
https://github.com/vim/vim.git
synced 2025-11-13 22:54:27 -05:00
updated for version 7.3.1217
Problem: New regexp engine: Can't handle \%[[ao]]. (Yukihiro Nakadaira) Solution: Support nested atoms inside \%[].
This commit is contained in:
@@ -366,6 +366,7 @@ STARTTEST
|
||||
:call add(tl, [2, '\%[bar]x', 'barxx', 'barx'])
|
||||
:call add(tl, [2, '\%[bar]x', 'bxx', 'bx'])
|
||||
:call add(tl, [2, '\%[bar]x', 'xxx', 'x'])
|
||||
:call add(tl, [2, 'b\%[[ao]r]', 'bar bor', 'bar'])
|
||||
:"
|
||||
:"""" Alternatives, must use first longest match
|
||||
:call add(tl, [2, 'goo\|go', 'google', 'goo'])
|
||||
|
||||
@@ -836,6 +836,9 @@ OK 2 - \%[bar]x
|
||||
OK 0 - \%[bar]x
|
||||
OK 1 - \%[bar]x
|
||||
OK 2 - \%[bar]x
|
||||
OK 0 - b\%[[ao]r]
|
||||
OK 1 - b\%[[ao]r]
|
||||
OK 2 - b\%[[ao]r]
|
||||
OK 0 - goo\|go
|
||||
OK 1 - goo\|go
|
||||
OK 2 - goo\|go
|
||||
|
||||
Reference in New Issue
Block a user