[vim/vim] NFA engine creates impossible groups (Issue #20802)

4 views
Skip to first unread message

Mukundan

unread,
4:50 AM (18 hours ago) 4:50 AM
to vim/vim, Subscribed
Mukundan314 created an issue (vim/vim#20802)

Steps to reproduce

  1. Open a file with the contents:
testing
testing
  1. Execute the command %s/\v(.)@<=/ |\1|/g
  2. Notice that the second line contains a ||e while implies \1 was empty

Expected behaviour

Contents after the substitute should be:

t |t|e |e|s |s|t |t|i |i|n |n|g
t |t|e |e|s |s|t |t|i |i|n |n|g

(which is also the result when executing with the old engine)

Version of Vim

9.2 1-804

Environment

OS: Arch LInux

Logs and stack traces


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/20802@github.com>

Reply all
Reply to author
Forward
0 new messages