Re: parse

Daniel Dekany <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Wednesday, January 6, 2010, 12:25:53 PM, Leos Literak wrote:

>> There is a typo in your template, which leads to this otherwise not
>> too correct error message: you have a " after the 24 parameter, which,
>> it seems, starts a string literal (and that's incorrect, as it should
>> be a parsing error immediately) that is closed by the " before the #,
>> and then you have a parameter expression that starts with #, which
>> causes the parsing error you get.
>
> Thank you Daniel, I have not looked to this part because of the error 
> mesage.
>
> Is it legal to have multiline string literals in freemarker?

Yes.

> If not, we could catch such errors in the parser.

The parser had to stop at:

  24"

But now I discover that the parser generously accepts things like
<@foo 1"second" /> as equivalent to <@foo 1 "second" />
(or to <@foo 1, "second" />). I'm certain it wasn't intentional...
Fixing this in 2.3.x would cause some templates to break when FM is
updated, while it doesn't add too much value. /-:

> Leos

-- 
Best regards,
 Daniel Dekany


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.