From 7a122adad3a72fcc763277e66c2aefd823d69ac5 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Fri, 30 Jun 2017 16:07:43 +0300 Subject: [PATCH] fix #40 --- yaml/hints.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yaml/hints.nim b/yaml/hints.nim index fd8f4d5..e4ef3f9 100644 --- a/yaml/hints.nim +++ b/yaml/hints.nim @@ -71,8 +71,8 @@ type ythAfterTimeSpace, ythAfterTimeZ, ythAfterTimePlusMinus, ythTzHour1, ythTzHour2, ythTzHourColon, ythTzMinute1, ythTzMinute2 -macro typeHintStateMachine(c: untyped, content: untyped): typed = - yAssert content.kind == nnkStmtList +macro typeHintStateMachine(c: untyped, content: varargs[untyped]): typed = + yAssert content.kind == nnkArgList result = newNimNode(nnkCaseStmt, content).add(copyNimNode(c)) for branch in content.children: yAssert branch.kind == nnkOfBranch