summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2019-03-05 22:34:31 +0100
committerAndreas Rumpf <rumpf_a@web.de>2019-03-06 09:00:06 +0100
commitcfd5210405efef07a7af482113512f67f266c4d3 (patch)
tree8b4738cd877a9da686ea74e7e8d47838c70edbe5
parent2c01f0ad8d1e321e608acc9e939afa99ed4c2250 (diff)
downloadNim-cfd5210405efef07a7af482113512f67f266c4d3.tar.gz
dfa.nim: continues are bad
-rw-r--r--compiler/dfa.nim5
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/dfa.nim b/compiler/dfa.nim
index cecb8394c..4dd2670ff 100644
--- a/compiler/dfa.nim
+++ b/compiler/dfa.nim
@@ -624,8 +624,9 @@ proc genMagic(c: var Con; n: PNode; m: TMagic) =
 
 proc genVarSection(c: var Con; n: PNode) =
   for a in n:
-    if a.kind == nkCommentStmt: continue
-    if a.kind == nkVarTuple:
+    if a.kind == nkCommentStmt:
+      discard
+    elif a.kind == nkVarTuple:
       gen(c, a.lastSon)
       for i in 0 .. a.len-3: genDef(c, a[i])
     else: