On Oct 14, 2009, at 6:23 PM, Rainer Müller wrote:
On 2009-10-14 20:06 , Blair Zajac wrote:
Ryan Schmidt wrote:
Note that for proper escaping, you either need double backslashes in
front of the periods...
livecheck.regex CouchDB (0\\.\[0-9\]+(\\.\[0-9\]+)?)
...or you need to enclose the entire regex in curly quotes to
disable
tcl special characters...
livecheck.regex {CouchDB (0\.[0-9]+(\.[0-9]+)?)}
Thanks, I'll fix that. I just copied these from the py26-pyflakes
port, so we
should fix those also.
This would be a good thing for port lint, as it's not obvious.
It's hard to detect if an backslash escape is meant for Tcl or the
regex. Remember that you cannot use variables inside curly braces and
therefore sometimes you want to have additional backslashes. What
would
be the rule to warn on port lint?
I guess if it finds unescaped .'s.
Blair
_______________________________________________
macports-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev