summary refs log tree commit diff stats
diff options
context:
space:
mode:
authortransfuturist <timothy.schmid@gmail.com>2015-07-03 13:48:13 -0700
committertransfuturist <timothy.schmid@gmail.com>2015-07-03 13:48:13 -0700
commit558360e6fdf73de27f2bf9631124288c4db4d8fb (patch)
tree74a14e9dc70682a5e2b3320dc71751c10acec318
parenta31c36e98f7caa330160b55c21d48c06cce03a62 (diff)
downloadNim-558360e6fdf73de27f2bf9631124288c4db4d8fb.tar.gz
Update macros.nim
-rw-r--r--lib/core/macros.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/core/macros.nim b/lib/core/macros.nim
index 3fd2c8502..98165dd17 100644
--- a/lib/core/macros.nim
+++ b/lib/core/macros.nim
@@ -709,7 +709,7 @@ proc ident*(name: string): NimNode {.compileTime,inline.} = newIdentNode(name)
   ## Create a new ident node from a string
 
 iterator items*(n: NimNode): NimNode {.inline.} =
-  if n.kind in {nnkType, nnkMetaNode .. nnkReturnToken}:
+  if n.kind > nnkNilLit:
     for i in 0 .. high(n):
       yield n[i]