Shell: Properly skip POSIX Fi tokens

This commit is contained in:
Tim Schumacher 2023-03-23 13:13:58 +01:00 committed by Ali Mohammad Pur
parent b1739029ef
commit c26639eac2

View file

@ -1210,6 +1210,7 @@ ErrorOr<RefPtr<AST::Node>> Parser::parse_if_clause()
active_node->false_branch() = make_ref_counted<AST::SyntaxError>(empty_position(), "Expected compound list after 'else'"_string.release_value_but_fixme_should_propagate_errors());
break;
case Token::Type::Fi:
skip();
needs_fi = false;
break;
default: