nimsuggest: make 'con' work again

This commit is contained in:
Andreas Rumpf 2017-03-10 13:20:32 +01:00
commit c5566f7c37
2 changed files with 17 additions and 0 deletions

View file

@ -1061,6 +1061,10 @@ proc rawGetTok*(L: var TLexer, tok: var TToken) =
inc(L.bufpos)
else:
tok.tokType = tkParLe
when defined(nimsuggest):
if L.fileIdx == gTrackPos.fileIndex and tok.col < gTrackPos.col and
tok.line == gTrackPos.line and gIdeCmd == ideCon:
gTrackPos.col = tok.col.int16
of ')':
tok.tokType = tkParRi
inc(L.bufpos)