authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2024-06-24 04:11:26 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2024-06-24 04:11:26 -07:00
log427ca3597d0d1084c024a8931447c51a666cdfd6
treee37517ad7e4c650fc47bdd9e5569bd54cba82504
parented98b6d8080e99a84940a25011f3f60334648f7f

indexOf returns the position of the start of the search


1 files changed, 1 insertions(+), 0 deletions(-)

intrusive_parser.zig+1
...@@ -126,6 +126,7 @@ pub const Parser = struct {...@@ -126,6 +126,7 @@ pub const Parser = struct {
126 continue;126 continue;
127 };127 };
128 p.idx += amt;128 p.idx += amt;
129 p.idx += 1;
129 const end = p.idx;130 const end = p.idx;
130 return .{ start, end };131 return .{ start, end };
131 }132 }