kropp / intellij-qml

QML support for IntelliJ-based IDEs
MIT License
54 stars 23 forks source link

Support ternary operator #7

Open machinekoder opened 6 years ago

machinekoder commented 6 years ago

The ternary operator is recommended to be used in QML. Right now it breaks code folding.

import QtQuick 2.0
import QtQuick.Controls 2.0

Item {
    id: root
    width: 500
    height: 500
    property string someText: root.width < 500 ? "small" : "big"  // ? condition also breaks code folding
}
Berserker66 commented 5 years ago

It is also highlighted in Red as an error