summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/GMLParser.cpp
diff options
context:
space:
mode:
authorEdgar Araújo <edgararaj@gmail.com>2021-03-21 19:13:41 +0000
committerAndreas Kling <kling@serenityos.org>2021-03-29 09:10:23 +0200
commite23b9907e78da55f65348fbdf640a6ddc404233b (patch)
treee7f4261b4d0208eea7007e3e56c63915e9b330a9 /Userland/Libraries/LibGUI/GMLParser.cpp
parentee3ac88c2dcc0a26ad48b439825ef8c4f7d957ad (diff)
downloadserenity-e23b9907e78da55f65348fbdf640a6ddc404233b.zip
LibGUI: Remove the necessity to have empty {} on GML objects
This simplifies GML syntax when the object doesn't have any childs or properties
Diffstat (limited to 'Userland/Libraries/LibGUI/GMLParser.cpp')
-rw-r--r--Userland/Libraries/LibGUI/GMLParser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGUI/GMLParser.cpp b/Userland/Libraries/LibGUI/GMLParser.cpp
index 67df75479c..1deb438ef2 100644
--- a/Userland/Libraries/LibGUI/GMLParser.cpp
+++ b/Userland/Libraries/LibGUI/GMLParser.cpp
@@ -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();