diff options
Diffstat (limited to 'Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator.cpp')
-rw-r--r-- | Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator.cpp b/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator.cpp index 6c4b86c941..b77794afcd 100644 --- a/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator.cpp @@ -230,6 +230,7 @@ static NonnullOwnPtr<Interface> parse_interface(StringView filename, StringView if (lexer.consume_specific("//")) { lexer.consume_until('\n'); + lexer.ignore(); consumed = true; } } @@ -276,7 +277,9 @@ static NonnullOwnPtr<Interface> parse_interface(StringView filename, StringView while (lexer.consume_specific("#import")) { consume_whitespace(); assert_specific('<'); - imports.append(resolve_import(lexer.consume_until('>'))); + auto path = lexer.consume_until('>'); + lexer.ignore(); + imports.append(resolve_import(path)); consume_whitespace(); } |