This chunk in blead HTML::Mason::Lexer apparently breaks a large
portion of RT’s template files. For example, Elements/Header
(as attached) now complains ‘bad name after $ShowBar => 1’,
as well as other random errors. I’ve currently applied a reverse
patch and updated http://autrijus.org/rt-2-1-12-win32.*, but
maybe somebody versed in Mason internals could take a look.
Thanks,
/Autrijus/
Diff generated from May 15’s CVS against the current CVS:
@@ -230,22 +235,25 @@
[ \t]*
(?: # this entire entire piece is optional
=>
-
( [^\n]+ ) # default value
-
( [^\n]+? ) # default value )? (?: # an optional comment [ \t]* \# [^\n]* )?
-
(?= $ending ) | [ \t]* # a comment line \# [^\n]*
-
(?= $ending ) | [ \t]* # just space )
-
\n
-
,xgcs
-
(?:\n | # newline or
-
(?= <\/%\Q$p{block_type}\E> ) ) # end of block (don't consume it)
-
{,xgc )
if ( defined $1 && defined $2 && length $1 && length $2 )
Header (1.43 KB)