mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 07:07:23 +00:00
LibGUI: Remove the necessity to have empty {} on GML objects
This simplifies GML syntax when the object doesn't have any childs or properties
This commit is contained in:
committed by
Andreas Kling
parent
ee3ac88c2d
commit
e23b9907e7
@@ -64,8 +64,8 @@ static Optional<JsonValue> parse_core_object(Queue<GMLToken>& tokens)
|
||||
object.set("class", JsonValue(class_name.m_view));
|
||||
|
||||
if (peek() != GMLToken::Type::LeftCurly) {
|
||||
dbgln("Expected {{");
|
||||
return {};
|
||||
// Empty object
|
||||
return object;
|
||||
}
|
||||
tokens.dequeue();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user