parent
9874981e75
commit
73eff1f457
4 changed files with 55 additions and 47 deletions
|
|
@ -1476,9 +1476,9 @@ proc semProcAnnotation(c: PContext, prc: PNode;
|
|||
let ident = considerQuotedIdent(c, key)
|
||||
if strTableGet(c.userPragmas, ident) != nil:
|
||||
continue # User defined pragma
|
||||
else:
|
||||
else:
|
||||
let sym = searchInScopes(c, ident)
|
||||
if sym != nil and sfCustomPragma in sym.flags:
|
||||
if sym != nil and sfCustomPragma in sym.flags:
|
||||
continue # User custom pragma
|
||||
|
||||
# we transform ``proc p {.m, rest.}`` into ``m(do: proc p {.rest.})`` and
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue