mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +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:
parent
f28d944122
commit
ef95ddcbfa
Notes:
sideshowbarker
2024-07-18 17:45:06 +09:00
Author: https://github.com/itamar8910
Commit: ef95ddcbfa
Pull-request: https://github.com/SerenityOS/serenity/pull/7261
1 changed files with 1 additions and 2 deletions
|
@ -851,9 +851,8 @@ void Parser::error(StringView message)
|
|||
|
||||
bool Parser::match_expression()
|
||||
{
|
||||
auto token_type = peek().type();
|
||||
return match_literal()
|
||||
|| token_type == Token::Type::Identifier
|
||||
|| match_name()
|
||||
|| match_unary_expression()
|
||||
|| match_cpp_cast_expression()
|
||||
|| match_c_style_cast_expression()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue