mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibIDL: Parse extended attributes before required keyword
This commit is contained in:
parent
04ac06f3c4
commit
e534395243
|
|
@ -955,13 +955,16 @@ void Parser::parse_dictionary(Interface& interface)
|
|||
bool required = false;
|
||||
HashMap<ByteString, ByteString> extended_attributes;
|
||||
|
||||
if (lexer.consume_specific('['))
|
||||
extended_attributes = parse_extended_attributes();
|
||||
|
||||
if (lexer.consume_specific("required"sv)) {
|
||||
required = true;
|
||||
consume_whitespace();
|
||||
}
|
||||
|
||||
if (lexer.consume_specific('['))
|
||||
extended_attributes = parse_extended_attributes();
|
||||
extended_attributes.update(parse_extended_attributes());
|
||||
|
||||
auto type = parse_type();
|
||||
consume_whitespace();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user