pegs: fixes another null accessing bug

This commit is contained in:
Andreas Rumpf
2018-05-06 09:00:41 +02:00
parent 88cf6573e0
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: