pegs: fixes another null accessing bug

This commit is contained in:
Andreas Rumpf 2018-05-06 09:00:41 +02:00
commit 6e8d5790c8

View file

@ -617,7 +617,7 @@ proc rawMatch*(s: string, p: Peg, start: int, c: var Captures): int {.
a, b: Rune
result = start
while i < len(p.term):
while true:
while i < len(p.term):
fastRuneAt(p.term, i, a)
if a != Rune('_'): break
while result < s.len: