In 3.x come_from should include COME_FROM_EXCEPT

This commit is contained in:
rocky
2017-04-13 20:27:02 -04:00
parent 495bdd7b64
commit a9f7a3c6d0

View File

@@ -156,7 +156,7 @@ class Python3Parser(PythonParser):
# of missing "else" clauses. Therefore we include grammar # of missing "else" clauses. Therefore we include grammar
# rules with and without ELSE. # rules with and without ELSE.
ifelsestmt ::= testexpr c_stmts_opt JUMP_FORWARD else_suite COME_FROM ifelsestmt ::= testexpr c_stmts_opt JUMP_FORWARD else_suite opt_come_from_except
ifelsestmt ::= testexpr c_stmts_opt jf_else else_suite _come_from ifelsestmt ::= testexpr c_stmts_opt jf_else else_suite _come_from
ifelsestmtc ::= testexpr c_stmts_opt JUMP_ABSOLUTE else_suitec ifelsestmtc ::= testexpr c_stmts_opt JUMP_ABSOLUTE else_suitec