diff options
author | Araq <rumpf_a@web.de> | 2013-09-24 21:45:22 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2013-09-24 21:45:22 +0200 |
commit | e3ecc328a19386142b13f3ef1cc801e7c158235f (patch) | |
tree | ab5c61609694f6a57afadb6b7d58faeee4d17b67 /compiler/importer.nim | |
parent | 8b5aa221adc9946894225dc569bac9d2d8bdde6d (diff) | |
download | Nim-e3ecc328a19386142b13f3ef1cc801e7c158235f.tar.gz |
fixes #593
Diffstat (limited to 'compiler/importer.nim')
-rw-r--r-- | compiler/importer.nim | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/importer.nim b/compiler/importer.nim index 077e5e0c9..54ffb1947 100644 --- a/compiler/importer.nim +++ b/compiler/importer.nim @@ -38,12 +38,11 @@ proc getModuleName*(n: PNode): string = # hacky way to implement 'x / y /../ z': result = renderTree(n, {renderNoComments}).replace(" ") of nkDotExpr: - result = renderTree(n, {renderNoComments}).replace(".") + result = renderTree(n, {renderNoComments}).replace(".", "/") of nkImportAs: result = getModuleName(n.sons[0]) else: - localError(n.info, errGenerated, - "invalid module name: '$1'" % renderTree(n)) + localError(n.info, errGenerated, "invalid module name: '$1'" % n.renderTree) result = "" proc checkModuleName*(n: PNode): int32 = |