pegs compiles again
This commit is contained in:
parent
1dd01e5891
commit
cc591cf3c1
1 changed files with 2 additions and 1 deletions
|
|
@ -1742,6 +1742,7 @@ when isMainModule:
|
||||||
else:
|
else:
|
||||||
assert false
|
assert false
|
||||||
|
|
||||||
|
when not definedInScope(matches):
|
||||||
var matches: array[0..maxSubpatterns-1, string]
|
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"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue