distinguish between 'defined' and 'declared'
This commit is contained in:
parent
b1c8461a3b
commit
dd806cafa0
36 changed files with 155 additions and 96 deletions
|
|
@ -243,7 +243,7 @@ template `=~` *(s: string, pattern: TRegex): expr =
|
|||
## echo("syntax error")
|
||||
##
|
||||
bind maxSubPatterns
|
||||
when not definedInScope(matches):
|
||||
when not declaredInScope(matches):
|
||||
var matches {.inject.}: array[0..MaxSubpatterns-1, string]
|
||||
match(s, pattern, matches)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue