From 2caf08855f99bbf816708a1497512d16b631289a Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Sun, 6 Nov 2016 11:19:59 +0100 Subject: nimsuggest supports include files properly; added the compiler itself as a testcase --- compiler/modules.nim | 1 + 1 file changed, 1 insertion(+) (limited to 'compiler/modules.nim') diff --git a/compiler/modules.nim b/compiler/modules.nim index e901ba896..68df5f756 100644 --- a/compiler/modules.nim +++ b/compiler/modules.nim @@ -208,6 +208,7 @@ proc includeModule*(graph: ModuleGraph; s: PSym, fileIdx: int32; cache: IdentCache): PNode {.procvar.} = result = syntaxes.parseFile(fileIdx, cache) graph.addDep(s, fileIdx) + graph.addIncludeDep(s.position.int32, fileIdx) proc compileSystemModule*(graph: ModuleGraph; cache: IdentCache) = if magicsys.systemModule == nil: -- cgit 1.4.1-2-gfad0