fixes #15430, pop pragma takes invalid input (#15449)

* fix #15430, pop pragma

{.pop, experimental.} should be allowed, but not {.pop experimental.}
This commit is contained in:
shirleyquirk
2020-10-01 17:07:55 +01:00
committed by GitHub
parent 26d656e73e
commit 84d9b1227d

View File

@@ -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