From 84d9b1227d036e2286cbceace0d8dd27c515c62b Mon Sep 17 00:00:00 2001 From: shirleyquirk <31934565+shirleyquirk@users.noreply.github.com> Date: Thu, 1 Oct 2020 17:07:55 +0100 Subject: [PATCH] fixes #15430, pop pragma takes invalid input (#15449) * fix #15430, pop pragma {.pop, experimental.} should be allowed, but not {.pop experimental.} --- compiler/pragmas.nim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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