File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -1265,7 +1265,7 @@ invalid_expression:
12651265 | !(NAME STRING | SOFT_KEYWORD) a=disjunction b=expression_without_invalid {
12661266 _PyPegen_raise_error_for_missing_comma(p, a, b) }
12671267 | disjunction 'if' disjunction a=':=' {
1268- RAISE_SYNTAX_ERROR_KNOWN_LOCATION(a, "assignment expression must be parenthesized inside conditional expression" ) }
1268+ RAISE_SYNTAX_ERROR_KNOWN_LOCATION(a, "assignment expression must be parenthesized inside conditional expression") }
12691269 | a=disjunction 'if' b=disjunction !('else'|':') { RAISE_SYNTAX_ERROR_KNOWN_RANGE(a, b, "expected 'else' after 'if' expression") }
12701270 | a=disjunction 'if' b=disjunction 'else' !expression {
12711271 RAISE_SYNTAX_ERROR_ON_NEXT_TOKEN("expected expression after 'else', but statement is given") }
You can’t perform that action at this time.
0 commit comments