Merge pull request #4231 from tautologico/fix-4001

Fix issue #4001: invalid pragma {. hint[]: off .}
This commit is contained in:
Andreas Rumpf
2016-05-28 01:13:49 +02:00

View File

@@ -277,6 +277,7 @@ proc processDynLib(c: PContext, n: PNode, sym: PSym) =
proc processNote(c: PContext, n: PNode) =
if (n.kind == nkExprColonExpr) and (sonsLen(n) == 2) 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[0].kind == nkIdent):
#and (n.sons[1].kind == nkIdent):