pegs compiles again

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

View File

@@ -1742,7 +1742,8 @@ when isMainModule:
else:
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):
assert matches[0] == "d"
assert matches[1] == "g"