Skip to content
Snippets Groups Projects
Commit ed1414a4 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Fixed indentation of single line QML/JS comments.

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