mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
LibCpp: Fix match_expression()
match_expression() will now return true if there's a match for a Name node.
This commit is contained in:
@@ -851,9 +851,8 @@ void Parser::error(StringView message)
|
|||||||
|
|
||||||
bool Parser::match_expression()
|
bool Parser::match_expression()
|
||||||
{
|
{
|
||||||
auto token_type = peek().type();
|
|
||||||
return match_literal()
|
return match_literal()
|
||||||
|| token_type == Token::Type::Identifier
|
|| match_name()
|
||||||
|| match_unary_expression()
|
|| match_unary_expression()
|
||||||
|| match_cpp_cast_expression()
|
|| match_cpp_cast_expression()
|
||||||
|| match_c_style_cast_expression()
|
|| match_c_style_cast_expression()
|
||||||
|
|||||||
Reference in New Issue
Block a user