summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMiran <narimiran@disroot.org>2019-06-26 23:09:57 +0200
committerAndreas Rumpf <rumpf_a@web.de>2019-06-26 23:09:57 +0200
commitf65eaa51f15707393e33f6666af8b0b8f57a0f33 (patch)
treec443488b37fb4994b437d1be43a1852320b892ed
parente083a1533b40ed768b2085852b714ea8e5564f4f (diff)
downloadNim-f65eaa51f15707393e33f6666af8b0b8f57a0f33.tar.gz
[bugfix] fix #11532, nimpretty should ignore source code filters (#11603)
-rw-r--r--compiler/syntaxes.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/syntaxes.nim b/compiler/syntaxes.nim
index 598a9bdc3..3e4f65c0b 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: