From 712d9ce1b9595afc6b79e299353580f38cb2f554 Mon Sep 17 00:00:00 2001 From: Miran Date: Wed, 26 Jun 2019 23:09:57 +0200 Subject: [PATCH] [bugfix] fix #11532, nimpretty should ignore source code filters (#11603) (cherry picked from commit f65eaa51f15707393e33f6666af8b0b8f57a0f33) --- compiler/syntaxes.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/syntaxes.nim b/compiler/syntaxes.nim index 598a9bdc32..3e4f65c0bd 100644 --- a/compiler/syntaxes.nim +++ b/compiler/syntaxes.nim @@ -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: