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:
|
||||
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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue