summary refs log tree commit diff stats
path: root/compiler/suggest.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2013-12-28 23:30:53 +0100
committerAraq <rumpf_a@web.de>2013-12-28 23:30:53 +0100
commit1101a40f91880b6cd1f0807d2b272eda7b5c9491 (patch)
tree650531f24cec9b67ffee2a36f4fa0eb2de3144d8 /compiler/suggest.nim
parentf2b9905b4e4365e0dd51a67ad90ac690f584feca (diff)
downloadNim-1101a40f91880b6cd1f0807d2b272eda7b5c9491.tar.gz
improvements for 'pretty'
Diffstat (limited to 'compiler/suggest.nim')
-rw-r--r--compiler/suggest.nim3
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)