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:
parent
96caf3aed1
commit
3413eb1416
2 changed files with 21 additions and 0 deletions
|
@ -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('<')) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue