Files
qt-creator/tests/auto/qml/reformatter/comments.qml
Marco Benelli d0823cd5e2 QmlJs: fix reformatting of 'signal' statements
Reformatting 'signal' preceded by comments used to bring to a bad
formatted file.

Task-number: QTCREATORBUG-17886
Change-Id: I02e093a4721cd1e75d45b498ea768251aee88ea4
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-04-07 05:32:20 +00:00

27 lines
395 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")
}
}
}