pegs: fixes another null accessing bug
This commit is contained in:
parent
88cf6573e0
commit
6e8d5790c8
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue