diff --git a/Cython/Compiler/Parsing.py b/Cython/Compiler/Parsing.py index d819ccebbc0a1b56313569f0fb7412b03bdda33b..927c82806ed9af1dd30890a24575f35d7a3a1f05 100644 --- a/Cython/Compiler/Parsing.py +++ b/Cython/Compiler/Parsing.py @@ -1503,7 +1503,7 @@ def p_c_arg_list(s, in_pyfunc, cmethod_flag = 0): args.append(p_c_arg_decl(s, in_pyfunc, cmethod_flag)) while s.sy == ',': s.next() - if s.sy in c_arg_list_trailers: + if s.sy in c_arg_list_terminators: break args.append(p_c_arg_decl(s, in_pyfunc)) return args