Skip to content

Commit

Permalink
Remove consuming dedents in indented statements
Browse files Browse the repository at this point in the history
  • Loading branch information
Glyphack committed Oct 7, 2023
1 parent 6ce902f commit 5a02075
Show file tree
Hide file tree
Showing 2 changed files with 10,407 additions and 10,411 deletions.
4 changes: 0 additions & 4 deletions parser/src/parser/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -472,8 +472,6 @@ impl Parser {
vec![]
};

self.bump(Kind::Dedent);

Ok(Statement::WhileStatement(While {
node: self.finish_node(node),
test,
Expand Down Expand Up @@ -510,8 +508,6 @@ impl Parser {
vec![]
};

self.bump(Kind::Dedent);

if is_async {
Ok(Statement::AsyncForStatement(AsyncFor {
node: self.finish_node(node),
Expand Down
Loading

0 comments on commit 5a02075

Please sign in to comment.