mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-03-06 13:35:03 +00:00
LibGUI: Consider comment tokens in GMLParser
It was just ignoring them, so any GML containing a comment would fail to parse with "Expected child, property, or }"!
This commit is contained in:
committed by
Andreas Kling
parent
d161007e9e
commit
c39323401c
@@ -119,8 +119,10 @@ static Optional<JsonValue> parse_core_object(Queue<GMLToken>& tokens)
|
||||
value = parsed_value.release_value();
|
||||
}
|
||||
object.set(property_name.m_view, move(value));
|
||||
} else if (peek() == GMLToken::Type::Comment) {
|
||||
tokens.dequeue();
|
||||
} else {
|
||||
dbgln("Expected child, property, or }}");
|
||||
dbgln("Expected child, property, comment, or }}");
|
||||
return {};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user