1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:28:12 +00:00

JSSpecCompiler: Parse lists in xspec mode

This commit is contained in:
Dan Klishch 2024-01-20 22:48:05 -05:00 committed by Andrew Kaster
parent d14bb7e91e
commit e1a1f4ed1a
9 changed files with 102 additions and 0 deletions

View file

@ -64,6 +64,8 @@ void tokenize_string(SpecificationParsingContext& ctx, XML::Node const* node, St
{ ">"sv, TokenType::Greater },
{ "is"sv, TokenType::Is },
{ "<"sv, TokenType::Less },
{ "»"sv, TokenType::ListEnd },
{ "«"sv, TokenType::ListStart },
{ "."sv, TokenType::MemberAccess },
{ "×"sv, TokenType::Multiplication },
{ "is not equal to"sv, TokenType::NotEquals },