diff options
author | Araq <rumpf_a@web.de> | 2011-03-27 00:33:20 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-03-27 00:33:20 +0100 |
commit | dc669155e39007f1b584eef247dff90523f836bf (patch) | |
tree | 5233362a6af2ac7232159ffebb7bfc19ea27026b /lib/pure/pegs.nim | |
parent | 45f8d31c4718fb20498b16a621f3d14b3056b5cc (diff) | |
download | Nim-dc669155e39007f1b584eef247dff90523f836bf.tar.gz |
some little bugfixes
Diffstat (limited to 'lib/pure/pegs.nim')
-rwxr-xr-x | lib/pure/pegs.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/pegs.nim b/lib/pure/pegs.nim index 6ad52c9a1..2e1d0f0ad 100755 --- a/lib/pure/pegs.nim +++ b/lib/pure/pegs.nim @@ -751,7 +751,7 @@ proc match*(s: string, pattern: TPeg, matches: var openarray[string], ## returned. var c: TCaptures c.origStart = start - result = rawMatch(s, pattern, start, c) == len(s) -start + result = rawMatch(s, pattern, start, c) == len(s) - start if result: for i in 0..c.ml-1: matches[i] = copy(s, c.matches[i][0], c.matches[i][1]) |