@@ -79,7 +79,7 @@ _PyPegen_parse(Parser *p)
79
79
# ~
80
80
# Commit to the current alternative, even if it fails to parse.
81
81
# &&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
83
83
# fail with SyntaxError if e cannot be parsed.
84
84
#
85
85
@@ -640,7 +640,7 @@ type_alias[stmt_ty]:
640
640
# Type parameter declaration
641
641
# --------------------------
642
642
643
- type_params[asdl_type_param_seq*]:
643
+ type_params[asdl_type_param_seq*]:
644
644
| invalid_type_params
645
645
| '[' t=type_param_seq ']' {
646
646
CHECK_VERSION(asdl_type_param_seq *, 12, "Type parameter lists are", t) }
@@ -1307,13 +1307,13 @@ invalid_group:
1307
1307
invalid_import:
1308
1308
| a='import' ','.dotted_name+ 'from' dotted_name {
1309
1309
RAISE_SYNTAX_ERROR_STARTING_FROM(a, "Did you mean to use 'from ... import ...' instead?") }
1310
- | 'import' token=NEWLINE {
1310
+ | 'import' token=NEWLINE {
1311
1311
RAISE_SYNTAX_ERROR_STARTING_FROM(token, "Expected one or more names after 'import'") }
1312
1312
1313
1313
invalid_import_from_targets:
1314
1314
| import_from_as_names ',' NEWLINE {
1315
1315
RAISE_SYNTAX_ERROR("trailing comma not allowed without surrounding parentheses") }
1316
- | token=NEWLINE {
1316
+ | token=NEWLINE {
1317
1317
RAISE_SYNTAX_ERROR_STARTING_FROM(token, "Expected one or more names after 'import'") }
1318
1318
1319
1319
invalid_with_stmt:
@@ -1437,5 +1437,5 @@ invalid_factor:
1437
1437
invalid_type_params:
1438
1438
| '[' token=']' {
1439
1439
RAISE_SYNTAX_ERROR_STARTING_FROM(
1440
- token,
1440
+ token,
1441
1441
"Type parameter list cannot be empty")}
0 commit comments