From f8931798899647b65ebb7d7dcf28d6976da599ce Mon Sep 17 00:00:00 2001 From: Araq Date: Wed, 22 Aug 2012 22:46:02 +0200 Subject: documented hygienic templates; made tests green; fixed system.clamp --- tests/run/tpegs.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/run') diff --git a/tests/run/tpegs.nim b/tests/run/tpegs.nim index a073f8856..315833326 100755 --- a/tests/run/tpegs.nim +++ b/tests/run/tpegs.nim @@ -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 ------------------------------ -- cgit 1.4.1-2-gfad0