This website requires JavaScript.
Explore
Help
Sign In
xenia
/
kakoune
Watch
1
Star
0
Fork
0
You've already forked kakoune
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
fb77f11351
kakoune
/
test
/
regression
/
4519-regex-alternation-priority
/
in
2 lines
7 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Fix regex alternation execution priority The ThreadedRegexVM implementation does not execute split opcodes as expected: on split the pending thread is pushed on top of the thread stack, which means that when multiple splits are executed in a row (such as with a disjunction with 3 or more branches) the last split target gets on top of the thread stack and gets executed next (when the thread from the first split target would be the expected one) Fixing this in the ThreadedRegexVM would have a performance impact as we would not be able to use a plain stack for current threads, so the best solution at the moment is to reverse the order of splits generated by a disjunction. Fixes #4519
2022-02-02 04:51:04 +01:00
foobar
Reference in New Issue
Copy Permalink
Mastodon