Skip to content

Commit

Permalink
Remove unnecessary grammar rule.
Browse files Browse the repository at this point in the history
When a syntax error was appearing after a "for" loop, the error was discarded by this rule causing that rules with nil conditions.
  • Loading branch information
plusvic committed Feb 16, 2022
1 parent 0b9e615 commit 569d025
Show file tree
Hide file tree
Showing 3 changed files with 278 additions and 272 deletions.
1 change: 0 additions & 1 deletion parser/grammar.y
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,6 @@ expression
In: $3,
}
}
| _FOR_ for_expression error { }
| _FOR_ for_expression for_variables _IN_ iterator ':' '(' boolean_expression ')'
{
$$ = &ast.ForIn{
Expand Down
Loading

0 comments on commit 569d025

Please sign in to comment.