* fix #15430, pop pragma {.pop, experimental.} should be allowed, but not {.pop experimental.}
This commit is contained in:
parent
26d656e73e
commit
84d9b1227d
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue