@@ -50,14 +50,14 @@ lambda_kwparams: "**" name ","?
50
50
? stmt: simple_stmt | compound_stmt
51
51
? simple_stmt: small_stmt (" ;" small_stmt )* [" ;" ] _ NEWLINE
52
52
? small_stmt: (expr_stmt | assign_stmt | del_stmt | pass_stmt | flow_stmt | import_stmt | global_stmt | nonlocal_stmt | assert_stmt )
53
- expr_stmt : testlist_star_expr
53
+ expr_stmt : testlist_star_expr
54
54
assign_stmt : annassign | augassign | assign
55
55
56
56
annassign : testlist_star_expr " :" test [" =" test ]
57
57
assign : testlist_star_expr (" =" (yield_expr | testlist_star_expr ))+
58
58
augassign : testlist_star_expr augassign_op (yield_expr | testlist )
59
59
! augassign_op: " +=" | " -=" | " *=" | " @=" | " /=" | " %=" | " &=" | " |=" | " ^=" | " <<=" | " >>=" | " **=" | " //="
60
- ? testlist_star_expr: test_or_star_expr
60
+ ? testlist_star_expr: test_or_star_expr
61
61
| test_or_star_expr (" ," test_or_star_expr )+ " ," ? -> tuple
62
62
| test_or_star_expr " ," -> tuple
63
63
@@ -95,13 +95,13 @@ for_stmt: "for" exprlist "in" testlist ":" suite ["else" ":" suite]
95
95
try_stmt : " try" " :" suite except_clauses [" else" " :" suite ] [finally ]
96
96
| " try" " :" suite finally -> try_finally
97
97
finally : " finally" " :" suite
98
- except_clauses : except_clause +
98
+ except_clauses : except_clause +
99
99
except_clause : " except" [test [" as" name ]] " :" suite
100
100
// NB compile.c makes sure that the default except clause is last
101
101
102
102
103
103
with_stmt : " with" with_items " :" suite
104
- with_items : with_item (" ," with_item )*
104
+ with_items : with_item (" ," with_item )*
105
105
with_item : test [" as" name ]
106
106
107
107
match_stmt : " match" test " :" _ NEWLINE _ INDENT case + _ DEDENT
@@ -204,7 +204,7 @@ AWAIT: "await"
204
204
| " {" _ set_exprlist " }" -> set
205
205
| " {" comprehension {test } " }" -> set_comprehension
206
206
| name -> var
207
- | number
207
+ | number
208
208
| string_concat
209
209
| " (" test " )"
210
210
| " ..." -> ellipsis
@@ -217,7 +217,7 @@ AWAIT: "await"
217
217
218
218
_ testlist_comp: test | _ tuple_inner
219
219
_ tuple_inner: test_or_star_expr ((" ," test_or_star_expr )+ [" ," ] | " ," )
220
-
220
+
221
221
222
222
? test_or_star_expr: test
223
223
| star_expr
@@ -253,7 +253,7 @@ kwargs: "**" test ("," argvalue)*
253
253
254
254
255
255
comprehension {comp_result }: comp_result comp_fors [comp_if ]
256
- comp_fors : comp_for +
256
+ comp_fors : comp_for +
257
257
comp_for : [ASYNC ] " for" exprlist " in" or_test
258
258
ASYNC : " async"
259
259
? comp_if: " if" test_nocond
0 commit comments