nimsuggest: fixes nimsuggest bug #45; do not show suggestions in string literals or comments
This commit is contained in:
parent
23a303c536
commit
1887390b0f
4 changed files with 96 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue