Menu

#43 Incorrect indent on line following boolean or attribute

open
nobody
None
5
2010-04-19
2010-04-19
JD Bothma
No

Indentation is incorrect when the last token on the previous line is boolean (PEAL2 only) or an Attribute (PEAL 0.5.5 and PEAL2).

I added boolean in PEAL2, which now goes through the \'value\' production in the parser, so I think it might have something to do with \'value\'.
I think something is misbehaving with regard to the lexical context.

initialization (
UM.x = 1
) // Note this is the correct indentation

initialization (
UM.x = UM.y
) // Note incorrect indentation since PEAL 0.5.5

initialization (
UM.x = true
) // Note incorrect indentation since PEAL 2

Discussion


Log in to post a comment.

MongoDB Logo MongoDB