diff --git a/Userland/Libraries/LibIDL/IDLParser.cpp b/Userland/Libraries/LibIDL/IDLParser.cpp index 6e19273d08..1c01639193 100644 --- a/Userland/Libraries/LibIDL/IDLParser.cpp +++ b/Userland/Libraries/LibIDL/IDLParser.cpp @@ -272,6 +272,8 @@ void Parser::parse_attribute(HashMap& 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();