Skip to content

Commit

Permalink
Fix up for loops over comma-separated expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
chrhansk committed Dec 8, 2024
1 parent be91184 commit b03be99
Show file tree
Hide file tree
Showing 5 changed files with 227,907 additions and 227,898 deletions.
2 changes: 1 addition & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ module.exports = grammar(Python, {
seq(
field("left", $._left_hand_side),
"in",
field("right", $._expression_within_for_in_clause),
field("right", commaSep1($.primary_expression)),
),

for_from_relation: $ =>
Expand Down
25 changes: 23 additions & 2 deletions src/grammar.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions src/node-types.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b03be99

Please sign in to comment.