Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH 2/4] diff.c: associate a flag with each pattern and use it for compiling regex

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:45:22

Andreas Ericsson [off-list ref] writes:
Junio C Hamano wrote:
quoted
Andreas Ericsson [off-list ref] writes:
...
I think it makes perfect sense to use whatever we pass when compiling
the regex. I wouldn't dare try to hack up something that pre-mangles
a regular expression and assume it gets it right everywhere anyway, so
I'm quite happy with leaving it all to regcomp(3) and friends.
Oh, I never meant pre-mangling or anything funky like that.

What I was envisioning we might want to make more flexible was what we
build on top of regexp, such as the way how these multi-line stuff is
treated for example.  Currently more than one positive regexp concatenated
with "\n" are ANDed together and the captured string from the last one is
used, but it is plausible we might want to say "first positive capturing
match yields result for this pattern string", or something like that.
quoted
Thanks --- I am bit under the weather and not thinking quite straight.
Mix 2cc's of 7yo Havana Club into a large cup of tea. Drink one such
cup every hour and eat a fresh fruit with it. I haven't been ill a day
in my life since I came up with that most excellent cure for absolutely
everything. If nothing else, it makes it a bit less boring to be ill.
Heh, unfortunately I happen to live in the US.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help