That's definitely a bug. I'll get on it as soon as I can. - Nathan
[EMAIL PROTECTED] wrote: > Sorry for the confusion, the documentation appears to have it correct > but that didn't work either. Here's the code I'm using (with the > indentation corrected) and the subsequent error. > > - case 2 > - when 1 > = "1!" > - when 2 > = "2?" > - when 3 > = "3." > > (eval):22:in `compile': compile error > (eval):7: syntax error, unexpected tIVAR, expecting kWHEN > @haml_lineno = 2 > ^ > (eval):8: syntax error, unexpected kWHEN, expecting kEND > when 1 > ^ > (eval):13: syntax error, unexpected kWHEN, expecting kEND > when 2 > ^ > (eval):18: syntax error, unexpected kWHEN, expecting kEND > when 3 > ^ > > On Mar 27, 6:23 pm, "Nathan Weizenbaum" <[EMAIL PROTECTED]> wrote: > >> The typical way to indent case statements is to have the whens at the same >> level as the case. Normally this doesn't matter, but in Haml, because it's >> indentation sensitive, it does. >> >> Where in the docs does the bad indentation occur? That's definitely >> something that should be fixed. >> >> - Nathan >> >> On 3/27/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> >> >> >> >>> Hey maybe I'm missing something but the case statement seems broken >>> for me on 1.5.0. >>> >>> Trying the following example from the docs: >>> - case 2 >>> - when 1 >>> = "1!" >>> - when 2 >>> = "2?" >>> - when 3 >>> = "3." >>> >>> Yields the following error output: >>> >>> (eval):13:in `compile': compile error >>> (eval):7: syntax error, unexpected tIVAR, expecting kWHEN >>> @haml_lineno = 2 >>> ^ >>> (eval):8: syntax error, unexpected kWHEN, expecting kEND >>> when 1 >>> ^ >>> (eval):13: syntax error, unexpected kEND, expecting $end >>> > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/haml?hl=en -~----------~----~----~----~------~----~------~--~---
