@@ -79,7 +79,7 @@ _PyPegen_parse(Parser *p)
7979# ~
8080# Commit to the current alternative, even if it fails to parse.
8181# &&e
82- # Eager parse e. The parser will not backtrack and will immediately
82+ # Eager parse e. The parser will not backtrack and will immediately
8383# fail with SyntaxError if e cannot be parsed.
8484#
8585
@@ -640,7 +640,7 @@ type_alias[stmt_ty]:
640640# Type parameter declaration
641641# --------------------------
642642
643- type_params[asdl_type_param_seq*]:
643+ type_params[asdl_type_param_seq*]:
644644 | invalid_type_params
645645 | '[' t=type_param_seq ']' {
646646 CHECK_VERSION(asdl_type_param_seq *, 12, "Type parameter lists are", t) }
@@ -1307,13 +1307,13 @@ invalid_group:
13071307invalid_import:
13081308 | a='import' ','.dotted_name+ 'from' dotted_name {
13091309 RAISE_SYNTAX_ERROR_STARTING_FROM(a, "Did you mean to use 'from ... import ...' instead?") }
1310- | 'import' token=NEWLINE {
1310+ | 'import' token=NEWLINE {
13111311 RAISE_SYNTAX_ERROR_STARTING_FROM(token, "Expected one or more names after 'import'") }
13121312
13131313invalid_import_from_targets:
13141314 | import_from_as_names ',' NEWLINE {
13151315 RAISE_SYNTAX_ERROR("trailing comma not allowed without surrounding parentheses") }
1316- | token=NEWLINE {
1316+ | token=NEWLINE {
13171317 RAISE_SYNTAX_ERROR_STARTING_FROM(token, "Expected one or more names after 'import'") }
13181318
13191319invalid_with_stmt:
@@ -1437,5 +1437,5 @@ invalid_factor:
14371437invalid_type_params:
14381438 | '[' token=']' {
14391439 RAISE_SYNTAX_ERROR_STARTING_FROM(
1440- token,
1440+ token,
14411441 "Type parameter list cannot be empty")}
0 commit comments