mirror of https://github.com/status-im/NimYAML.git
Merge pull request #41 from zah/fix-issue-40
fix #40 (compatibility with Nim 0.17.0)
This commit is contained in:
commit
0e679ead9c
|
@ -71,8 +71,8 @@ type
|
||||||
ythAfterTimeSpace, ythAfterTimeZ, ythAfterTimePlusMinus, ythTzHour1,
|
ythAfterTimeSpace, ythAfterTimeZ, ythAfterTimePlusMinus, ythTzHour1,
|
||||||
ythTzHour2, ythTzHourColon, ythTzMinute1, ythTzMinute2
|
ythTzHour2, ythTzHourColon, ythTzMinute1, ythTzMinute2
|
||||||
|
|
||||||
macro typeHintStateMachine(c: untyped, content: untyped): typed =
|
macro typeHintStateMachine(c: untyped, content: varargs[untyped]): typed =
|
||||||
yAssert content.kind == nnkStmtList
|
yAssert content.kind == nnkArgList
|
||||||
result = newNimNode(nnkCaseStmt, content).add(copyNimNode(c))
|
result = newNimNode(nnkCaseStmt, content).add(copyNimNode(c))
|
||||||
for branch in content.children:
|
for branch in content.children:
|
||||||
yAssert branch.kind == nnkOfBranch
|
yAssert branch.kind == nnkOfBranch
|
||||||
|
|
Loading…
Reference in New Issue