Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,15 @@ function qmlweb_parse($TEXT, document_type, exigent_mode) {
function qmlpropdef() {
var type = S.token.value;
next();

var subtype;
if (is("operator", "<")) {
next();
subtype = S.token.value;
next();
expect_token("operator", ">");
}

var name = S.token.value;
next();
if (type == "alias") {
Expand Down
1 change: 1 addition & 0 deletions tests/qml/Properties.qml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ Rectangle {
property var foo: {}
property var bar: []
property Item item: Item {}
property list<Item> items
}
7 changes: 6 additions & 1 deletion tests/qml/Properties.qml.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,12 @@
[]
]
],
"Item {}\n"
"Item {}\n "
],
[
"qmlpropdef",
"items",
"list"
]
]
]
Expand Down