1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:47:36 +00:00

LibWeb: Teach IDLParser about long long

This commit is contained in:
stelar7 2022-05-09 22:25:42 +02:00 committed by Linus Groh
parent 96caf3aed1
commit 3413eb1416
2 changed files with 21 additions and 0 deletions

View file

@ -181,6 +181,13 @@ NonnullRefPtr<Type> Parser::parse_type()
consume_whitespace();
auto name = lexer.consume_until([](auto ch) { return !is_ascii_alphanumeric(ch) && ch != '_'; });
if (name.equals_ignoring_case("long"sv)) {
consume_whitespace();
if (lexer.consume_specific("long"sv))
name = "long long";
}
NonnullRefPtrVector<Type> parameters;
bool is_parameterized_type = false;
if (lexer.consume_specific('<')) {