Fixing import path support inconsitency.

This commit is contained in:
Hans Raaf
2015-03-07 00:27:42 +01:00
parent 2c0dfcb302
commit b85da579b3

View File

@@ -27,7 +27,7 @@ proc getModuleName*(n: PNode): string =
result = n.ident.s
of nkSym:
result = n.sym.name.s
of nkInfix:
of nkInfix, nkPrefix:
if n.sons[0].kind == nkIdent and n.sons[0].ident.id == getIdent("as").id:
# XXX hack ahead:
n.kind = nkImportAs