mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-21 08:48:57 +00:00
LibWeb: Only consume [a-zA-Z0-9_] characters for IDL types
This commit is contained in:
parent
72a45a472a
commit
a11f7868a4
Notes:
sideshowbarker
2024-07-18 03:23:00 +09:00
Author: https://github.com/IdanHo
Commit: a11f7868a4
Pull-request: https://github.com/SerenityOS/serenity/pull/10236
1 changed files with 1 additions and 1 deletions
|
@ -230,7 +230,7 @@ static OwnPtr<Interface> parse_interface(StringView filename, StringView const&
|
|||
bool unsigned_ = lexer.consume_specific("unsigned");
|
||||
if (unsigned_)
|
||||
consume_whitespace();
|
||||
auto name = lexer.consume_until([](auto ch) { return isspace(ch) || ch == '?'; });
|
||||
auto name = lexer.consume_until([](auto ch) { return !isalnum(ch) && ch != '_'; });
|
||||
auto nullable = lexer.consume_specific('?');
|
||||
StringBuilder builder;
|
||||
if (unsigned_)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue