bugfix that enables the 'since' template [backport]
This commit is contained in:
parent
14a0182ca6
commit
f69ee294c8
1 changed files with 7 additions and 2 deletions
|
|
@ -1441,8 +1441,13 @@ proc semProcAnnotation(c: PContext, prc: PNode;
|
||||||
continue
|
continue
|
||||||
|
|
||||||
doAssert r.sons[0].kind == nkSym
|
doAssert r.sons[0].kind == nkSym
|
||||||
# Expand the macro here
|
let m = r.sons[0].sym
|
||||||
result = semMacroExpr(c, r, r, r.sons[0].sym, {})
|
case m.kind
|
||||||
|
of skMacro: result = semMacroExpr(c, r, r, m, {})
|
||||||
|
of skTemplate: result = semTemplateExpr(c, r, m, {})
|
||||||
|
else:
|
||||||
|
prc.sons[pragmasPos] = n
|
||||||
|
continue
|
||||||
|
|
||||||
doAssert result != nil
|
doAssert result != nil
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue