From 05233de66cbe4a1878e8d83b7bc8fb9df20d8ff1 Mon Sep 17 00:00:00 2001 From: Araq Date: Fri, 27 Feb 2015 16:44:23 +0100 Subject: [PATCH] reprocess pragmas after macro annotation for SqueakNim --- compiler/semstmts.nim | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim index 42471bae76..10c74e7ea4 100644 --- a/compiler/semstmts.nim +++ b/compiler/semstmts.nim @@ -757,7 +757,8 @@ proc lookupMacro(c: PContext, n: PNode): PSym = else: result = searchInScopes(c, considerQuotedIdent(n), {skMacro, skTemplate}) -proc semProcAnnotation(c: PContext, prc: PNode): PNode = +proc semProcAnnotation(c: PContext, prc: PNode; + validPragmas: TSpecialWords): PNode = var n = prc.sons[pragmasPos] if n == nil or n.kind == nkEmpty: return for i in countup(0,