diff options
author | Araq <rumpf_a@web.de> | 2013-12-28 23:30:53 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2013-12-28 23:30:53 +0100 |
commit | 1101a40f91880b6cd1f0807d2b272eda7b5c9491 (patch) | |
tree | 650531f24cec9b67ffee2a36f4fa0eb2de3144d8 /compiler/suggest.nim | |
parent | f2b9905b4e4365e0dd51a67ad90ac690f584feca (diff) | |
download | Nim-1101a40f91880b6cd1f0807d2b272eda7b5c9491.tar.gz |
improvements for 'pretty'
Diffstat (limited to 'compiler/suggest.nim')
-rw-r--r-- | compiler/suggest.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/suggest.nim b/compiler/suggest.nim index 888f958d0..7e0a28afb 100644 --- a/compiler/suggest.nim +++ b/compiler/suggest.nim @@ -11,7 +11,7 @@ # included from sigmatch.nim -import algorithm, sequtils +import algorithm, sequtils, pretty const sep = '\t' @@ -327,6 +327,7 @@ proc markUsed(n: PNode, s: PSym) = if sfDeprecated in s.flags: message(n.info, warnDeprecated, s.name.s) if sfError in s.flags: localError(n.info, errWrongSymbolX, s.name.s) suggestSym(n, s) + if gCmd == cmdPretty: checkUse(n) proc useSym*(sym: PSym): PNode = result = newSymNode(sym) |