@@ -33,8 +33,8 @@ DEF_RULE(decorator, nc, and(4), tok(DEL_AT), rule(dotted_name), opt_rule(trailer
3333DEF_RULE (decorators , nc , one_or_more , rule (decorator ))
3434DEF_RULE (decorated , c (decorated ), and (2 ), rule (decorators ), rule (decorated_body ))
3535DEF_RULE (decorated_body , nc , or (2 ), rule (classdef ), rule (funcdef ))
36- DEF_RULE (funcdef , c (funcdef ), and (8 ), tok (KW_DEF ), tok (NAME ), tok (DEL_PAREN_OPEN ), opt_rule (typedargslist ), tok (DEL_PAREN_CLOSE ), opt_rule (funcdef_2 ), tok (DEL_COLON ), rule (suite ))
37- DEF_RULE (funcdef_2 , nc , and (2 ), tok (DEL_MINUS_MORE ), rule (test ))
36+ DEF_RULE (funcdef , c (funcdef ), and (8 ), tok (KW_DEF ), tok (NAME ), tok (DEL_PAREN_OPEN ), opt_rule (typedargslist ), tok (DEL_PAREN_CLOSE ), opt_rule (funcdefrettype ), tok (DEL_COLON ), rule (suite ))
37+ DEF_RULE (funcdefrettype , nc , and (2 ), tok (DEL_MINUS_MORE ), rule (test ))
3838// TODO typedargslist lets through more than is allowed
3939DEF_RULE (typedargslist , nc , list_with_end , rule (typedargslist_item ), tok (DEL_COMMA ))
4040DEF_RULE (typedargslist_item , nc , or (3 ), rule (typedargslist_name ), rule (typedargslist_star ), rule (typedargslist_dbl_star ))
0 commit comments