summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2015-09-10 12:20:02 +0200
committerAraq <rumpf_a@web.de>2015-09-10 12:20:02 +0200
commit051e4181292c196be79bb00654027379e0ccf9c3 (patch)
tree83ea8cecfffeb6b42b4c2d678c866a5e8027d270
parenta92f3bead327a1ec7049f89ba9a0f392426c7b0a (diff)
downloadNim-051e4181292c196be79bb00654027379e0ccf9c3.tar.gz
fixes Nim's bigbang regression
-rw-r--r--compiler/filter_tmpl.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/filter_tmpl.nim b/compiler/filter_tmpl.nim
index d3ab1728c..21810adb9 100644
--- a/compiler/filter_tmpl.nim
+++ b/compiler/filter_tmpl.nim
@@ -67,9 +67,9 @@ proc parseLine(p: var TTmplParser) =
     keyw: string
   j = 0
   while p.x[j] == ' ': inc(j)
-  if (p.x[0] == p.nimDirective) and (p.x[0 + 1] == '!'):
+  if p.x[0] == p.nimDirective and p.x[1] in {'?', '!'}:
     newLine(p)
-  elif (p.x[j] == p.nimDirective):
+  elif p.x[j] == p.nimDirective:
     newLine(p)
     inc(j)
     while p.x[j] == ' ': inc(j)