Quick-Turn-Studio / CLionSupportForQt

19 stars 0 forks source link

Bool expressions and not single operator operations fails #12

Closed gwaldvogel closed 2 years ago

gwaldvogel commented 4 years ago

The following code produces this error at ||: QmlTokenType.CLOSE_PARENTHESIS, QmlTokenType.DOT, QmlTokenType.INCREMENT_OPERATOR or QmlTokenType.OPEN_ARRAY expected, got '||'

Code to reproduce:

Keys.onPressed: {
            console.log("Key pressed", event.key, event)
            if(event.key === Qt.Key_Left || event.key === Qt.Key_A) {
                player.moveLeft();
            }
}

Just to clarify: this is an issue with the QML Editor.

machtelik commented 4 years ago

Same with && which leads to QmlTokenType.CLOSE_PARENTHESIS, QmlTokenType.COMPARE_OPERATOR, QmlTokenType.DOT, QmlTokenType.INCREMENT_OPERATOR or QmlTokenType.OPEN_ARRAY expected, got '&&'

grabusr commented 3 years ago

Hi @gwaldvogel

We finally was managed to recreate parser and issues with operations should not happen again. Version 0.9.8 is ready to download. Please let us know if it solves this issue.