[bugfix] fix #11532, nimpretty should ignore source code filters (#11603)

(cherry picked from commit f65eaa51f1)
This commit is contained in:
Miran
2019-06-26 23:09:57 +02:00
committed by narimiran
parent ba6eb0151c
commit 712d9ce1b9

View File

@@ -72,7 +72,7 @@ proc parsePipe(filename: AbsoluteFile, inputStream: PLLStream; cache: IdentCache
i = 0
inc linenumber
if i+1 < line.len and line[i] == '#' and line[i+1] == '?':
when defined(nimpretty2):
when defined(nimpretty):
# XXX this is a bit hacky, but oh well...
quit "can't nimpretty a source code filter"
else: