diff options
author | transfuturist <timothy.schmid@gmail.com> | 2015-07-03 13:48:13 -0700 |
---|---|---|
committer | transfuturist <timothy.schmid@gmail.com> | 2015-07-03 13:48:13 -0700 |
commit | 558360e6fdf73de27f2bf9631124288c4db4d8fb (patch) | |
tree | 74a14e9dc70682a5e2b3320dc71751c10acec318 | |
parent | a31c36e98f7caa330160b55c21d48c06cce03a62 (diff) | |
download | Nim-558360e6fdf73de27f2bf9631124288c4db4d8fb.tar.gz |
Update macros.nim
-rw-r--r-- | lib/core/macros.nim | 2 |
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] |