Re: skipping backslashes at the end of lines

[email protected] ("Ted Zlatanov") 2 Jun 2004 09:40:12 -0400
Newsgroups perl.recdescent
Organization Теодор Златанов @ Cienfuegos
Message-ID <[email protected]>
On Tue, 1 Jun 2004, [email protected] wrote:

> I've solved my problem by using
> 
> 	<skip: '(?:\s|\\\\\\\\[ \t]*\n)+'>
> 
> six backslashes work too:
> 
> 	<skip: '(?:\s|\\\\\\[ \t]*\n)+'>
> 
> Still I don't understand why this works this way and there is not
> much to see in the RD_TRACE file (only the debug print statements)

I think I've already suggested this on the recdescent mailing list:
just pre-process the input to join every line ending with a backslash.
It's very easy to do that before handing the input to P::RD; it's
complicated (as you see) to do it inside P::RD.  Some would prefer an
all-P::RD solution, but I think the pragmatic approach works better
and produces simpler code in your case.

Ted