Skip to content
Snippets Groups Projects
Commit 2d4b4b82 authored by Christian Kamm's avatar Christian Kamm
Browse files

QmlJS: Fix typo in new indenter.

parent 1f60ac7b
No related branches found
No related tags found
No related merge requests found
...@@ -93,7 +93,7 @@ void QtStyleCodeFormatter::onEnter(int newState, int *indentDepth, int *savedInd ...@@ -93,7 +93,7 @@ void QtStyleCodeFormatter::onEnter(int newState, int *indentDepth, int *savedInd
if (parentState.type == binding_assignment) if (parentState.type == binding_assignment)
*savedIndentDepth = state(1).savedIndentDepth; *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) if (firstToken || followedByData)
*savedIndentDepth = tokenPosition; *savedIndentDepth = tokenPosition;
......
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