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:
parent
b081cf077e
commit
6761791c9a
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue