[tapx-dev] Trailing backslash in TAP lines

Andy Armstrong andy at hexten.net
Tue Jul 3 12:24:43 BST 2007


Ovid wrote:
> ----- Original Message ----
> From: Steffen Schwigon <schwigon at webit.de>
> 
>> Should I correct my test output or should TAP::Parser handle lines
>> with trailing backslash differently?
> 
> I think that TAP::Parser's behavior is incorrect.  The problem will be found in the TAP::Parser::Grammar, specifically this line, I think, which is supposed to allow a hash mark if it's escaped:
> 
>   my $description = qr/.*?(?!\\(?:\\\\)*)#?/;
> 
> I'm at work, so I can't look at this right now, but if anyone else wants to take a gander at it, feel free.  I've never quite like the regexes I've cobbled together for TAP parsing since there are so many edge cases.

My PowerBook died yesterday so I'm still busy putting my working 
environment back together under Ubuntu - but I'll have a look later if 
you don't get to it first.


More information about the tapx-dev mailing list