documented hygienic templates; made tests green; fixed system.clamp

This commit is contained in:
Araq
2012-08-22 22:46:02 +02:00
parent a95e958046
commit f893179889
11 changed files with 123 additions and 48 deletions

View File

@@ -866,7 +866,7 @@ template `=~`*(s: string, pattern: TPeg): expr =
## echo("syntax error")
##
when not definedInScope(matches):
var matches: array[0..maxSubpatterns-1, string]
var matches {.inject.}: array[0..maxSubpatterns-1, string]
match(s, pattern, matches)
# ------------------------- more string handling ------------------------------