nimsuggest supports include files properly; added the compiler itself as a testcase
This commit is contained in:
parent
eb2455075e
commit
0c49822b50
4 changed files with 29 additions and 7 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue