This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
872dd7e
)
regexec.c: Reword comment
author
Karl Williamson
<public@khwilliamson.com>
Sat, 25 Aug 2012 14:06:30 +0000
(08:06 -0600)
committer
Karl Williamson
<public@khwilliamson.com>
Sun, 26 Aug 2012 05:21:29 +0000
(23:21 -0600)
This portion of the comment is unnecessary, and doesn't really reflect
the implementation
regexec.c
patch
|
blob
|
blame
|
history
diff --git
a/regexec.c
b/regexec.c
index
5da40f8
..
469a7fc
100644
(file)
--- a/
regexec.c
+++ b/
regexec.c
@@
-3952,11
+3952,7
@@
S_regmatch(pTHX_ regmatch_info *reginfo, regnode *prog)
| (L* ( LVT | ( V | LV ) V*) T*)
The last two terms can be combined like this:
- L* ( L
- | (( LVT | ( V | LV ) V*) T*))
-
- And refactored into this:
- L* (L | LVT T* | V V* T* | LV V* T*)
+ L* ( L | (( LVT | ( V | LV ) V*) T*))
That means that if we have seen any L's at all we can quit
there, but if the next character is an LVT, a V, or an LV we