diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-09-27 23:43:28 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-28 16:51:27 +0200 |
commit | a11f7868a4cf67f2266dd13592a5be4811ba95cc (patch) | |
tree | ec4e674b98541a1437495f88345334b7fe1f04a5 /Meta | |
parent | 72a45a472aa3ce4dfc97c68beeebe95b3df34e23 (diff) | |
download | serenity-a11f7868a4cf67f2266dd13592a5be4811ba95cc.zip |
LibWeb: Only consume [a-zA-Z0-9_] characters for IDL types
Diffstat (limited to 'Meta')
-rw-r--r-- | Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator.cpp b/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator.cpp index 060f3ab960..f4c359c8d4 100644 --- a/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator.cpp @@ -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_) |