nimsuggest supports include files properly; added the compiler itself as a testcase

This commit is contained in:
Andreas Rumpf 2016-11-06 11:19:59 +01:00
commit 0c49822b50
4 changed files with 29 additions and 7 deletions

View file

@ -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: