From cc591cf3c1c2be469f1cae8a45f99d55d8bda81f Mon Sep 17 00:00:00 2001 From: Araq Date: Thu, 2 May 2013 01:54:42 +0200 Subject: [PATCH] pegs compiles again --- lib/pure/pegs.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/pure/pegs.nim b/lib/pure/pegs.nim index 61a1c08c79..240ea0945c 100644 --- a/lib/pure/pegs.nim +++ b/lib/pure/pegs.nim @@ -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"