one more bit to pass -- futzing with the if/else chains

This commit is contained in:
Jeremy Ashkenas
2010-02-12 23:35:03 -05:00
parent ee1c9b284a
commit 066ee52615
7 changed files with 36 additions and 27 deletions

View File

@@ -105,7 +105,7 @@ lex::identifier_token: ->
@tokens.splice(-2, 1)
else
@tag(1, 'PROPERTY_ACCESS')
if tag is 'ELSE' and @tag() is 'IF'
if tag is 'IF' and @tag() is 'ELSE'
@tag(1, 'ELSIF')
else
@token(tag, id)