1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 22:47:44 +00:00

JSSpecCompiler: Parse '?' before function calls in xspec mode

This commit is contained in:
Dan Klishch 2024-01-20 21:52:02 -05:00 committed by Andrew Kaster
parent b800276347
commit 3d365326af
5 changed files with 20 additions and 1 deletions

View file

@ -71,6 +71,7 @@ void tokenize_string(SpecificationParsingContext& ctx, XML::Node const* node, St
{ ")"sv, TokenType::ParenClose },
{ "("sv, TokenType::ParenOpen },
{ "+"sv, TokenType::Plus },
{ "?"sv, TokenType::QuestionMark },
};
LineTrackingLexer lexer(view, node->offset);