Files
qt-creator/tests/auto/qml/reformatter/comments.qml
Uladzislau Paulovich 8f7cbd6416 qml | Fix trailing comments formatting
Change-Id: I0461c4616cff15b7010e3844850d32e9f07469ea
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-06-11 15:23:17 +00:00

34 lines
568 B
QML

import QtQuick 2.0
/* Comment 1
This is a multiline comment. */
/*
Another multiline comment.
A slightly different formatting.
*/
Item {
/*
Indented multiline comment.
*/
// Comment over a signal.
signal foo
function test() {
for (var i = model.count - 1; i >= 0; --i) // in-line comment
{
console.log("test")
}
var a = 1
if (a > 0) {
console.log("positive")
} // Final condition
else {
console.log("negative or zero")
}
}
}