Skip to content

Commit

Permalink
workaround nitely#81
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheecour committed Oct 31, 2020
1 parent c233ee4 commit 2c1229c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/regex/nodetype.nim
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,12 @@ func initSkipNode*(next: openArray[int16]): Node =
result = Node(
kind: reSkip,
cp: "#".toRune)
result.next.add next
when false:
# pending https://github.com/nim-lang/Nim/issues/15511#issuecomment-719952709
result.next.add next
else:
for ai in next:
result.next.add ai

func isEmpty*(n: Node): bool =
## check if a set ``Node`` is empty
Expand Down

0 comments on commit 2c1229c

Please sign in to comment.