mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-31 10:22:15 +00:00
pegs compiles again
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user