Skip to content

Commit fd0f5d0

Browse files
authored
Remove trailing whitespace from python.gram (#133175)
1 parent 58a0f40 commit fd0f5d0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Grammar/python.gram

+5-5
Original file line numberDiff line numberDiff line change
@@ -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

@@ -659,7 +659,7 @@ type_alias[stmt_ty]:
659659
# Type parameter declaration
660660
# --------------------------
661661

662-
type_params[asdl_type_param_seq*]:
662+
type_params[asdl_type_param_seq*]:
663663
| invalid_type_params
664664
| '[' t=type_param_seq ']' {
665665
CHECK_VERSION(asdl_type_param_seq *, 12, "Type parameter lists are", t) }
@@ -1339,13 +1339,13 @@ invalid_group:
13391339
invalid_import:
13401340
| a='import' ','.dotted_name+ 'from' dotted_name {
13411341
RAISE_SYNTAX_ERROR_STARTING_FROM(a, "Did you mean to use 'from ... import ...' instead?") }
1342-
| 'import' token=NEWLINE {
1342+
| 'import' token=NEWLINE {
13431343
RAISE_SYNTAX_ERROR_STARTING_FROM(token, "Expected one or more names after 'import'") }
13441344

13451345
invalid_import_from_targets:
13461346
| import_from_as_names ',' NEWLINE {
13471347
RAISE_SYNTAX_ERROR("trailing comma not allowed without surrounding parentheses") }
1348-
| token=NEWLINE {
1348+
| token=NEWLINE {
13491349
RAISE_SYNTAX_ERROR_STARTING_FROM(token, "Expected one or more names after 'import'") }
13501350

13511351
invalid_with_stmt:
@@ -1484,5 +1484,5 @@ invalid_factor:
14841484
invalid_type_params:
14851485
| '[' token=']' {
14861486
RAISE_SYNTAX_ERROR_STARTING_FROM(
1487-
token,
1487+
token,
14881488
"Type parameter list cannot be empty")}

0 commit comments

Comments
 (0)