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
commit 84d9b1227d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1037,7 +1037,9 @@ proc singlePragma(c: PContext, sym: PSym, n: PNode, i: var int,
of wPush: of wPush:
processPush(c, n, i + 1) processPush(c, n, i + 1)
result = true result = true
of wPop: processPop(c, it) of wPop:
processPop(c, it)
result = true
of wPragma: of wPragma:
if not sym.isNil and sym.kind == skTemplate: if not sym.isNil and sym.kind == skTemplate:
sym.flags.incl sfCustomPragma sym.flags.incl sfCustomPragma