mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:58:11 +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:
parent
ee3ac88c2d
commit
e23b9907e7
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue