Skip to content

Commit

Permalink
Fix #182
Browse files Browse the repository at this point in the history
  • Loading branch information
Hackerpilot committed Jan 18, 2015
1 parent 9ec503a commit b50b2c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/autocomplete.d
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,8 @@ T getExpression(T)(T beforeTokens)
break expressionLoop;
mixin (TYPE_IDENT_AND_LITERAL_CASES);
mixin (EXPRESSION_LOOP_BREAK);
if (i > 0 && beforeTokens[i - 1] == tok!"!")
if (i > 1 && beforeTokens[i - 1] == tok!"!"
&& beforeTokens[i - 2] == tok!"identifier")
{
sliceEnd -= 2;
i--;
Expand Down

0 comments on commit b50b2c8

Please sign in to comment.