summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlexander Ivanov <alehander42@gmail.com>2019-10-11 19:05:23 +0300
committerAndreas Rumpf <rumpf_a@web.de>2019-10-11 18:05:23 +0200
commit990aadc43c3b492a1df61582d5bd212a0643aee4 (patch)
tree9adc3f9a255c610fe88f945e49efda297b98a460
parent94c1695be6a81f82de07340fc1c2010281111fad (diff)
downloadNim-990aadc43c3b492a1df61582d5bd212a0643aee4.tar.gz
Fixes semCustomPragma when nkSym (#12414) [backport]
-rw-r--r--compiler/pragmas.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/pragmas.nim b/compiler/pragmas.nim
index 208f6dae3..383eaaced 100644
--- a/compiler/pragmas.nim
+++ b/compiler/pragmas.nim
@@ -720,7 +720,7 @@ proc pragmaGuard(c: PContext; it: PNode; kind: TSymKind): PSym =
 proc semCustomPragma(c: PContext, n: PNode): PNode =
   var callNode: PNode
 
-  if n.kind == nkIdent:
+  if n.kind in {nkIdent, nkSym}:
     # pragma -> pragma()
     callNode = newTree(nkCall, n)
   elif n.kind == nkExprColonExpr: