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

LibIDL: Require the 'attribute' keyword when parsing attributes

This commit is contained in:
Matthew Olsson 2023-11-10 18:50:29 -07:00 committed by Andreas Kling
parent b081cf077e
commit 6761791c9a

View file

@ -272,6 +272,8 @@ void Parser::parse_attribute(HashMap<DeprecatedString, DeprecatedString>& extend
if (lexer.consume_specific("attribute"))
consume_whitespace();
else
report_parsing_error("expected 'attribute'"sv, filename, input, lexer.tell());
auto type = parse_type();
consume_whitespace();