diff --git a/src/api.js b/src/api.js index 803ab36..ca16f3e 100644 --- a/src/api.js +++ b/src/api.js @@ -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") { diff --git a/tests/qml/Properties.qml b/tests/qml/Properties.qml index 5436ddd..3c8976a 100644 --- a/tests/qml/Properties.qml +++ b/tests/qml/Properties.qml @@ -14,4 +14,5 @@ Rectangle { property var foo: {} property var bar: [] property Item item: Item {} + property list items } diff --git a/tests/qml/Properties.qml.json b/tests/qml/Properties.qml.json index 06c0b7a..64e254f 100644 --- a/tests/qml/Properties.qml.json +++ b/tests/qml/Properties.qml.json @@ -151,7 +151,12 @@ [] ] ], - "Item {}\n" + "Item {}\n " + ], + [ + "qmlpropdef", + "items", + "list" ] ] ]