Use declaredInScope instead of definedInScope

This commit is contained in:
def 2015-02-18 01:57:10 +01:00
commit 456aa7fdfe

View file

@ -14,7 +14,7 @@ template optRe{re(x)}(x: string{lit}): Regex =
g g
template `=~`(s: string, pattern: Regex): bool = template `=~`(s: string, pattern: Regex): bool =
when not definedInScope(matches): when not declaredInScope(matches):
var matches {.inject.}: array[maxSubPatterns, string] var matches {.inject.}: array[maxSubPatterns, string]
match(s, pattern, matches) match(s, pattern, matches)