David Abrahams wrote:
OK, that makes sense - escapes must be doubled in a literal string to get through to the regex parser. What tripped me up is that the rules for escaping a "literal" close bracket character in bjam aren't quite what I was used to (perl/python and the regex rules in my editor (CodeWright...)). Here's an summary of the differences based on the actual string passed to the regex (i.e., after initial "string literal" escapes are processed):James Fowler <[EMAIL PROTECTED]> writes:
bjam and python silently interpret an unmatched unescaped closing bracket as a literal, where it is an illegal _expression_ for CodeWright. All three work if the final close bracket is escaped. I think the part that really confused me is that bjam gets confused when the close bracket is escaped in a negated character set, i.e. "[^]]" works but "[^\]]" fails. What I considered the "intuitive" pattern ( \[include[ ]*([^\]]+)\] ) failed with bjam. Oh what fun... - james p.s. anyone have strong preferences/recommendations on an editor? I've been using CodeWright for ages, but it's been finicky lately (really complex C++ code crashes CodeWright's source indexing logic). Unfortunately Borland seems to be abandoning the product, so I'm thinking it's time to move on... -- __________________________________________________________ James Fowler, Open Sea Consulting http://www.OpenSeaConsulting.com, Marietta, Georgia, USA Do C++ Right. http://www.OpenCpp.org, opening soon! |
- [Boost-docs] Re: can't build QuickBook documentation Joel de Guzman
- [Boost-docs] Re: can't build QuickBook documentation Joel de Guzman
- Re: [Boost-docs] Re: can't build QuickBook documentation Vladimir Prus
- [Boost-docs] Re: can't build QuickBook documentation Joel de Guzman
- [Boost-docs] Re: can't build QuickBook documentation David Abrahams
- [Boost-docs] Re: can't build QuickBook documentation Jo�o Abecasis
- [Boost-docs] Re: can't build QuickBook documentation Joel de Guzman
- [Boost-docs] Re: can't build QuickBook documentation Jo�o Abecasis
- Re: [Boost-docs] Re: can't build QuickBook documentation James Fowler
- [Boost-docs] Re: can't build QuickBook documentation David Abrahams
- Re: [Boost-docs] Re: can't build QuickBook documentation James Fowler
- Re: [Boost-docs] Re: can't build QuickBook documentation James Fowler
- [Boost-docs] Re: can't build QuickBook documentation David Abrahams
- Re: [Boost-docs] Re: can't build QuickBook documentation James Fowler
- [Boost-docs] Re: can't build QuickBook documentation David Abrahams
- Re: [Boost-docs] Re: can't build QuickBook documentation James Fowler
- Re: [Boost-docs] Re: can't build QuickBook documentation Jeff Garland
- [Boost-docs] Re: can't build QuickBook documentation David Abrahams
- [Boost-docs] Re: can't build QuickBook documentation Joao Abecasis
- [Boost-docs] Re: can't build QuickBook documentation David Abrahams
- [Boost-docs] Re: can't build QuickBook documentation Jo�o Abecasis
