Commit ed1414a4 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Fixed indentation of single line QML/JS comments.

parent 9ac98a40
......@@ -226,8 +226,10 @@ QString QScriptIndenter::trimmedCodeLine(const QString &t)
int e = token.length;
if (token.offset > 0 || startState == 0) {
trimmed.append(QLatin1String("/*"));
i += 2;
if (token.length >= 2 && t.midRef(token.offset, 2) == QLatin1String("/*")) {
trimmed.append(QLatin1String("/*"));
i += 2;
}
}
bool needEndOfComment = false;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment