difftastic/vendor/tree-sitter-qmljs/test/highlight/components.qml

22 lines
312 B
QML

import QtQuick
Item {
id: root
component MyItem : Item {}
// <- keyword
// ^ type ^ type
Component {
// <- type
id: component
// ^ variable.parameter
Item {}
}
function foo() {
let component = null;
// ^ variable
}
}