diff options
author | Zahary Karadjov <zahary@gmail.com> | 2017-04-10 13:06:06 +0300 |
---|---|---|
committer | Zahary Karadjov <zahary@gmail.com> | 2017-04-10 13:06:06 +0300 |
commit | 8b63b84924ed9de9d8bd3f348eac597e186916a0 (patch) | |
tree | a9a3411564258e80dfc056d36c66cbf946103e35 /tests | |
parent | 8cb11aac4f35b6b75e5238a71ede9224c1a5ed05 (diff) | |
download | Nim-8b63b84924ed9de9d8bd3f348eac597e186916a0.tar.gz |
fix a regression in tlexerex
Diffstat (limited to 'tests')
-rw-r--r-- | tests/macros/tlexerex.nim | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/macros/tlexerex.nim b/tests/macros/tlexerex.nim index d348a4bcc..db2c38ef6 100644 --- a/tests/macros/tlexerex.nim +++ b/tests/macros/tlexerex.nim @@ -1,8 +1,7 @@ - import macros -macro match*(s: cstring|string; pos: int; sections: untyped): untyped = - for sec in sections.children: +macro match*(s: cstring|string; pos: int; sections: varargs[untyped]): untyped = + for sec in sections: expectKind sec, nnkOfBranch expectLen sec, 2 result = newStmtList() |