LibGUI: Fix GML parser command order regression
This was previously fixed in #13572 with 546d338639cc090055d0c416a76fc237d06930c8 but regressed in #14251 with ec40c93300a2b111129adf1a5badecde8c22889f
This commit is contained in:
parent
ae3b9ad69f
commit
c38d3b8520
Notes:
sideshowbarker
2024-07-17 23:02:37 +09:00
Author: https://github.com/frhun Commit: https://github.com/SerenityOS/serenity/commit/c38d3b8520 Pull-request: https://github.com/SerenityOS/serenity/pull/14255
1 changed files with 2 additions and 2 deletions
|
@ -57,14 +57,14 @@ static ErrorOr<NonnullRefPtr<Object>> parse_gml_object(Queue<Token>& tokens)
|
|||
// It's a child object.
|
||||
|
||||
while (!pending_comments.is_empty())
|
||||
TRY(object->add_sub_object_child(pending_comments.take_last()));
|
||||
TRY(object->add_sub_object_child(pending_comments.take_first()));
|
||||
|
||||
TRY(object->add_sub_object_child(TRY(parse_gml_object(tokens))));
|
||||
} else if (peek() == Token::Type::Identifier) {
|
||||
// It's a property.
|
||||
|
||||
while (!pending_comments.is_empty())
|
||||
TRY(object->add_property_child(pending_comments.take_last()));
|
||||
TRY(object->add_property_child(pending_comments.take_first()));
|
||||
|
||||
auto property_name = tokens.dequeue();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue