mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-04-25 22:13:13 +00:00
Shell/PosixParser: Correctly parse the OR_IF token
This fixes an unfortunate typo where we would parse the OR_IF token as an AST::And node. Now, it is parsed into an AST::Or node :^).
This commit is contained in:
committed by
Ali Mohammad Pur
parent
c5d3ccca00
commit
0e1bd54896
@@ -799,7 +799,7 @@ ErrorOr<RefPtr<AST::Node>> Parser::parse_and_or()
|
||||
auto rhs = TRY(parse_pipeline());
|
||||
if (!rhs)
|
||||
return RefPtr<AST::Node> {};
|
||||
node = make_ref_counted<AST::And>(
|
||||
node = make_ref_counted<AST::Or>(
|
||||
node->position(),
|
||||
*node,
|
||||
rhs.release_nonnull(),
|
||||
|
||||
Reference in New Issue
Block a user