mirror of
https://github.com/RGBCube/serenity
synced 2025-07-10 04:07:35 +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:
parent
d161007e9e
commit
c39323401c
1 changed files with 3 additions and 1 deletions
|
@ -119,8 +119,10 @@ static Optional<JsonValue> parse_core_object(Queue<GMLToken>& tokens)
|
||||||
value = parsed_value.release_value();
|
value = parsed_value.release_value();
|
||||||
}
|
}
|
||||||
object.set(property_name.m_view, move(value));
|
object.set(property_name.m_view, move(value));
|
||||||
|
} else if (peek() == GMLToken::Type::Comment) {
|
||||||
|
tokens.dequeue();
|
||||||
} else {
|
} else {
|
||||||
dbgln("Expected child, property, or }}");
|
dbgln("Expected child, property, comment, or }}");
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue