From dca5508d13249c261d322b499098439b4fc294a9 Mon Sep 17 00:00:00 2001 From: def Date: Sun, 22 Feb 2015 23:03:46 +0100 Subject: Make compiler read files from stdin Special "-" file as stdin. --- compiler/modules.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/modules.nim') diff --git a/compiler/modules.nim b/compiler/modules.nim index db05ccc6c..a2b739efc 100644 --- a/compiler/modules.nim +++ b/compiler/modules.nim @@ -116,7 +116,7 @@ proc newModule(fileIdx: int32): PSym = result.kind = skModule let filename = fileIdx.toFullPath result.name = getIdent(splitFile(filename).name) - if not isNimIdentifier(result.name.s): + if result.name.s != "-" and not isNimIdentifier(result.name.s): rawMessage(errInvalidModuleName, result.name.s) result.info = newLineInfo(fileIdx, 1, 1) -- cgit 1.4.1-2-gfad0