mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
LibWeb: Allow "unrestricted" floats and doubles in IDL
For now, we don't treat them any differently from regular floats and doubles.
This commit is contained in:
parent
eef0edae7a
commit
504d221e4a
Notes:
sideshowbarker
2024-07-17 08:18:05 +09:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/SerenityOS/serenity/commit/504d221e4a Pull-request: https://github.com/SerenityOS/serenity/pull/14839
1 changed files with 4 additions and 0 deletions
|
@ -180,6 +180,10 @@ NonnullRefPtr<Type> Parser::parse_type()
|
|||
if (unsigned_)
|
||||
consume_whitespace();
|
||||
|
||||
// FIXME: Actually treat "unrestricted" and normal floats/doubles differently.
|
||||
if (lexer.consume_specific("unrestricted"))
|
||||
consume_whitespace();
|
||||
|
||||
auto name = lexer.consume_until([](auto ch) { return !is_ascii_alphanumeric(ch) && ch != '_'; });
|
||||
|
||||
if (name.equals_ignoring_case("long"sv)) {
|
||||
|
|
Loading…
Reference in a new issue