diff options
author | Araq <rumpf_a@web.de> | 2019-07-10 09:07:03 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2019-07-10 09:07:03 +0200 |
commit | 18182e4bfd046f38c22dc95b29263fb40ac75e5b (patch) | |
tree | 1848da24003a90722ed8f18bf63a524f59c419d6 /compiler/pragmas.nim | |
parent | ff4a9a226f484e3c07c0d2fb2e9ae74e2047a312 (diff) | |
download | Nim-18182e4bfd046f38c22dc95b29263fb40ac75e5b.tar.gz |
linter: refactorings
Diffstat (limited to 'compiler/pragmas.nim')
-rw-r--r-- | compiler/pragmas.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/pragmas.nim b/compiler/pragmas.nim index b50b9ece2..327a6ff9b 100644 --- a/compiler/pragmas.nim +++ b/compiler/pragmas.nim @@ -778,7 +778,7 @@ proc singlePragma(c: PContext, sym: PSym, n: PNode, i: var int, let k = whichKeyword(ident) if k in validPragmas: if {optStyleHint, optStyleError} * c.config.globalOptions != {}: - checkPragmaUse(c.config, key.info, ident.s) + checkPragmaUse(c.config, key.info, k, ident.s) case k of wExportc: makeExternExport(c, sym, getOptionalStr(c, it, "$1"), it.info) |