Skip to content

Commit

Permalink
fix bug in parsing elif blocks with multiple elif statements
Browse files Browse the repository at this point in the history
  • Loading branch information
sccolbert committed Jun 12, 2013
1 parent 6af2a02 commit e25363b
Show file tree
Hide file tree
Showing 2 changed files with 442 additions and 442 deletions.
882 changes: 441 additions & 441 deletions enaml/core/parse_tab/parsetab.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion enaml/core/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1217,7 +1217,7 @@ def p_if_stmt4(p):


def p_elif_stmts1(p):
''' elif_stmts : elif_stmts elif_stmt '''
''' elif_stmts : elif_stmt elif_stmts '''
elif_stmt = p[1]
elif_stmt.orelse = [p[2]]
p[0] = elif_stmt
Expand Down

0 comments on commit e25363b

Please sign in to comment.