Merge pull request #4231 from tautologico/fix-4001
Fix issue #4001: invalid pragma {. hint[]: off .}
This commit is contained in:
commit
64afb1039b
1 changed files with 1 additions and 0 deletions
|
|
@ -277,6 +277,7 @@ proc processDynLib(c: PContext, n: PNode, sym: PSym) =
|
||||||
proc processNote(c: PContext, n: PNode) =
|
proc processNote(c: PContext, n: PNode) =
|
||||||
if (n.kind == nkExprColonExpr) and (sonsLen(n) == 2) and
|
if (n.kind == nkExprColonExpr) and (sonsLen(n) == 2) and
|
||||||
(n.sons[0].kind == nkBracketExpr) and
|
(n.sons[0].kind == nkBracketExpr) and
|
||||||
|
(n.sons[0].sons.len == 2) and
|
||||||
(n.sons[0].sons[1].kind == nkIdent) and
|
(n.sons[0].sons[1].kind == nkIdent) and
|
||||||
(n.sons[0].sons[0].kind == nkIdent):
|
(n.sons[0].sons[0].kind == nkIdent):
|
||||||
#and (n.sons[1].kind == nkIdent):
|
#and (n.sons[1].kind == nkIdent):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue