mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 01:51:03 +09: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:
parent
c5d3ccca00
commit
0e1bd54896
Notes:
sideshowbarker
2024-07-17 01:46:43 +09:00
Author: https://github.com/david072
Commit: 0e1bd54896
Pull-request: https://github.com/SerenityOS/serenity/pull/21988
Issue: https://github.com/SerenityOS/serenity/issues/19324
1 changed files with 1 additions and 1 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue