Re: [web2py] Re: Line continuation problem in new parser?

2010-08-24 Thread Phyo Arkar
that wasn't supported hmm

On Mon, Aug 23, 2010 at 6:47 PM, Michael Ellis wrote:

> Probably didn't.  I encountered it while trying to clean up some view code
> that was looking messy.  I'm in favor of supporting line continuation if at
> all possible or, if not, at least issuing an error message to that effect.
>
>
>
>
> On Sun, Aug 22, 2010 at 9:14 PM, mdipierro wrote:
>
>> Did this work before? I do not think continuation was ever supported.
>>
>> Massimo
>>
>> On Aug 22, 2:13 pm, Michael Ellis  wrote:
>> > In Version 1.83.2 (2010-08-15 02:10:01)
>> >
>> > this works:
>> >
>> > {{
>> > for r in rows:
>> > =DIV(SPAN(r[0]), SPAN(fcw[r[0]]), SPAN(fcw[r[1]]))
>> > pass
>> >
>> > }}
>> >
>> > but this raises a syntax error:
>> > {{
>> > for r in rows:
>> > =DIV(SPAN(r[0]),
>> >   SPAN(fcw[r[0]]),
>> >   SPAN(fcw[r[1]]))
>> > pass
>> >
>> > }}
>> >
>> > Tried '\' continuations also.  The parser thinks there are extra chars
>> > after the backslash even when there aren't.
>> >
>> > Apologies if this is a known issue or intentional limitation.
>> >
>> > Cheers,
>> > Mike
>
>
>


Re: [web2py] Re: Line continuation problem in new parser?

2010-08-23 Thread Michael Ellis
Probably didn't.  I encountered it while trying to clean up some view code
that was looking messy.  I'm in favor of supporting line continuation if at
all possible or, if not, at least issuing an error message to that effect.



On Sun, Aug 22, 2010 at 9:14 PM, mdipierro  wrote:

> Did this work before? I do not think continuation was ever supported.
>
> Massimo
>
> On Aug 22, 2:13 pm, Michael Ellis  wrote:
> > In Version 1.83.2 (2010-08-15 02:10:01)
> >
> > this works:
> >
> > {{
> > for r in rows:
> > =DIV(SPAN(r[0]), SPAN(fcw[r[0]]), SPAN(fcw[r[1]]))
> > pass
> >
> > }}
> >
> > but this raises a syntax error:
> > {{
> > for r in rows:
> > =DIV(SPAN(r[0]),
> >   SPAN(fcw[r[0]]),
> >   SPAN(fcw[r[1]]))
> > pass
> >
> > }}
> >
> > Tried '\' continuations also.  The parser thinks there are extra chars
> > after the backslash even when there aren't.
> >
> > Apologies if this is a known issue or intentional limitation.
> >
> > Cheers,
> > Mike


[web2py] Re: Line continuation problem in new parser?

2010-08-22 Thread mdipierro
Did this work before? I do not think continuation was ever supported.

Massimo

On Aug 22, 2:13 pm, Michael Ellis  wrote:
> In Version 1.83.2 (2010-08-15 02:10:01)
>
> this works:
>
> {{
> for r in rows:
>     =DIV(SPAN(r[0]), SPAN(fcw[r[0]]), SPAN(fcw[r[1]]))
>     pass
>
> }}
>
> but this raises a syntax error:
> {{
> for r in rows:
>     =DIV(SPAN(r[0]),
>       SPAN(fcw[r[0]]),
>       SPAN(fcw[r[1]]))
>     pass
>
> }}
>
> Tried '\' continuations also.  The parser thinks there are extra chars
> after the backslash even when there aren't.
>
> Apologies if this is a known issue or intentional limitation.
>
> Cheers,
> Mike