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

This commit is contained in:
Miran 2019-06-26 23:09:57 +02:00 • committed by Andreas Rumpf
commit f65eaa51f1

View file

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