nimsuggest: fixes nimsuggest bug #45; do not show suggestions in string literals or comments

This commit is contained in:
Araq 2017-03-08 12:53:21 +01:00
commit 1887390b0f
4 changed files with 96 additions and 7 deletions

View file

@ -736,6 +736,8 @@ proc `??`* (info: TLineInfo, filename: string): bool =
# only for debugging purposes
result = filename in info.toFilename
const trackPosInvalidFileIdx* = -2 # special marker so that no suggestions
# are produced within comments and string literals
var gTrackPos*: TLineInfo
type