summary refs log tree commit diff stats
path: root/compiler/semstmts.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2020-04-19 11:59:01 +0200
committerGitHub <noreply@github.com>2020-04-19 11:59:01 +0200
commit73eff1f4579c62a083886d78980ecdc805990041 (patch)
tree5c57cc8dde0d0c49b606ad440d87dec7c9337ecb /compiler/semstmts.nim
parent9874981e757f0e2658baa3a871450509cee9204c (diff)
downloadNim-73eff1f4579c62a083886d78980ecdc805990041.tar.gz
fixes #12741 (#14005)
* fixes #12741
* updated tests
Diffstat (limited to 'compiler/semstmts.nim')
-rw-r--r--compiler/semstmts.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim
index 992f05e32..986953ab2 100644
--- a/compiler/semstmts.nim
+++ b/compiler/semstmts.nim
@@ -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