Re: Minor bug in regex used in match_comp_content_call_end (Lexer.pm)?
Dave Rolsky <[email protected]> Thu, 18 Oct 2007 17:52:27 -0500 (CDT)
| Newsgroups | gmane.comp.web.mason.devel |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 18 Oct 2007, Alex Robinson wrote:
> I think I found a very minor bug in Lexer.pm
>
> match_comp_content_call_end, line 453
>>>>>
> if ( $self->{current}{comp_source} =~ m,\G</&(.*?)>,gc )
> <<<<
>
> Shouldn't the modifier flags be 'gcs' as is the case with
> match_comp_content_call?
Err, probably ;)
> Currently, the following causes a compilation error
>
> ====================================================
> <&|
> Wrap
> &>
> Hello
> </&
> Wrap
>>
> Goodbye
>
> <%def Wrap>
> [Wrap start] <% $m->content %> [Wrap end]
> </%def>
> ====================================================
>
> But I'm assuming the fact that the opening component with content
> call can be broken on to multiple lines and that
> match_comp_content_call_end attempts to do a tr on the content of the
> matched end call for the line count means that it shouldn't...
Patches are very much welcome ;)
-dave
/*===================================================
VegGuide.Org www.BookIRead.com
Your guide to all that's veg. My book blog
===================================================*/
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/