pegs compiles again

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

View file

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