fixing if/else rules

This commit is contained in:
Jeremy Ashkenas
2010-02-12 22:16:26 -05:00
parent b36196286a
commit 249bd99656
5 changed files with 41 additions and 60 deletions

View File

@@ -117,7 +117,7 @@
this.tag(1, 'PROPERTY_ACCESS');
}
}
this.token(tag, id);
tag === 'ELSE' && this.tag() === 'IF' ? this.tag(1, 'ELSIF') : this.token(tag, id);
this.i += id.length;
return true;
};