mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
Shell: Properly skip POSIX Fi
tokens
This commit is contained in:
parent
b1739029ef
commit
c26639eac2
Notes:
sideshowbarker
2024-07-17 01:51:00 +09:00
Author: https://github.com/timschumi Commit: https://github.com/SerenityOS/serenity/commit/c26639eac2 Pull-request: https://github.com/SerenityOS/serenity/pull/18012 Reviewed-by: https://github.com/alimpfard
1 changed files with 1 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue