diff options
author | Araq <rumpf_a@web.de> | 2012-08-22 22:46:02 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-08-22 22:46:02 +0200 |
commit | f8931798899647b65ebb7d7dcf28d6976da599ce (patch) | |
tree | 0fdbd7f0b5516279458d21bf99a698cb2cb89e37 /tests/run | |
parent | a95e958046447d0ef88d93337171d4b8339348a4 (diff) | |
download | Nim-f8931798899647b65ebb7d7dcf28d6976da599ce.tar.gz |
documented hygienic templates; made tests green; fixed system.clamp
Diffstat (limited to 'tests/run')
-rwxr-xr-x | tests/run/tpegs.nim | 2 |
1 files changed, 1 insertions, 1 deletions
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 ------------------------------ |