diff --git a/compiler/pragmas.nim b/compiler/pragmas.nim index 3b7ae175d5..67e574d522 100644 --- a/compiler/pragmas.nim +++ b/compiler/pragmas.nim @@ -1037,7 +1037,9 @@ proc singlePragma(c: PContext, sym: PSym, n: PNode, i: var int, of wPush: processPush(c, n, i + 1) result = true - of wPop: processPop(c, it) + of wPop: + processPop(c, it) + result = true of wPragma: if not sym.isNil and sym.kind == skTemplate: sym.flags.incl sfCustomPragma