Commit 2d4b4b82 authored by Christian Kamm's avatar Christian Kamm
Browse files

QmlJS: Fix typo in new indenter.

parent 1f60ac7b
......@@ -93,7 +93,7 @@ void QtStyleCodeFormatter::onEnter(int newState, int *indentDepth, int *savedInd
if (parentState.type == binding_assignment)
*savedIndentDepth = state(1).savedIndentDepth;
bool followedByData = (!lastToken && !tokenAt(tokenIndex() + 1).kind == Token::Comment);
bool followedByData = (!lastToken && tokenAt(tokenIndex() + 1).kind != Token::Comment);
if (firstToken || followedByData)
*savedIndentDepth = tokenPosition;
......
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