pegs compiles again

This commit is contained in:
Araq 2013-05-02 01:54:42 +02:00
commit cc591cf3c1

View file

@ -1742,6 +1742,7 @@ when isMainModule:
else:
assert false
when not definedInScope(matches):
var matches: array[0..maxSubpatterns-1, string]
if match("abcdefg", peg"c {d} ef {g}", matches, 2):
assert matches[0] == "d"