Merge branch 'devel' of github.com:nim-lang/Nim into devel
This commit is contained in:
commit
943aaecbe7
4 changed files with 34 additions and 24 deletions
|
|
@ -982,6 +982,9 @@ proc semProcAnnotation(c: PContext, prc: PNode;
|
|||
var x = newNodeI(nkCall, n.info)
|
||||
x.add(newSymNode(m))
|
||||
prc.sons[pragmasPos] = copyExcept(n, i)
|
||||
if prc[pragmasPos].kind != nkEmpty and prc[pragmasPos].len == 0:
|
||||
prc.sons[pragmasPos] = emptyNode
|
||||
|
||||
if it.kind == nkExprColonExpr:
|
||||
# pass pragma argument to the macro too:
|
||||
x.add(it.sons[1])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue