mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:48:12 +00:00
LibWeb: Expect IDL namespace to end with semicolon
From the Web IDL spec: https://heycam.github.io/webidl/#prod-Namespace Namespace :: namespace identifier { NamespaceMembers } ;
This commit is contained in:
parent
ec4980e875
commit
c1dfb2d883
95 changed files with 98 additions and 95 deletions
|
@ -288,8 +288,11 @@ static OwnPtr<Interface> parse_interface(StringView filename, const StringView&
|
|||
|
||||
consume_whitespace();
|
||||
|
||||
if (lexer.consume_specific('}'))
|
||||
if (lexer.consume_specific('}')) {
|
||||
consume_whitespace();
|
||||
assert_specific(';');
|
||||
break;
|
||||
}
|
||||
|
||||
if (lexer.consume_specific('[')) {
|
||||
extended_attributes = parse_extended_attributes();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue