summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2017-04-10 13:06:06 +0300
committerZahary Karadjov <zahary@gmail.com>2017-04-10 13:06:06 +0300
commit8b63b84924ed9de9d8bd3f348eac597e186916a0 (patch)
treea9a3411564258e80dfc056d36c66cbf946103e35 /tests
parent8cb11aac4f35b6b75e5238a71ede9224c1a5ed05 (diff)
downloadNim-8b63b84924ed9de9d8bd3f348eac597e186916a0.tar.gz
fix a regression in tlexerex
Diffstat (limited to 'tests')
-rw-r--r--tests/macros/tlexerex.nim5
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()