Merge pull request #2284 from oderwat/fix-importer
Fixing import path support inconsitency.
This commit is contained in:
commit
d8ad078f6c
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ proc getModuleName*(n: PNode): string =
|
||||||
result = n.ident.s
|
result = n.ident.s
|
||||||
of nkSym:
|
of nkSym:
|
||||||
result = n.sym.name.s
|
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:
|
if n.sons[0].kind == nkIdent and n.sons[0].ident.id == getIdent("as").id:
|
||||||
# XXX hack ahead:
|
# XXX hack ahead:
|
||||||
n.kind = nkImportAs
|
n.kind = nkImportAs
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue