Skip to content

Commit

Permalink
Fixes skipDo.
Browse files Browse the repository at this point in the history
  • Loading branch information
dom96 committed Dec 26, 2014
1 parent 56e733c commit 9e4489f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions jester.nim
Expand Up @@ -538,8 +538,10 @@ proc checkAction(response: PResponse): bool =
assert(false)

proc skipDo(node: PNimrodNode): PNimrodNode {.compiletime.} =
expectKind node, nnkDo
result = node[6]
if node.kind == nnkDo:
result = node[6]
else:
result = result

proc ctParsePattern(pattern: string): PNimrodNode {.compiletime.} =
result = newNimNode(nnkPrefix)
Expand Down

0 comments on commit 9e4489f

Please sign in to comment.