summary refs log tree commit diff stats
path: root/lib/impure/re.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2013-05-08 15:49:04 +0200
committerAraq <rumpf_a@web.de>2013-05-08 15:49:04 +0200
commit44c4b945eb8e5255aa128dad2553e290eebdd24b (patch)
tree7d22bb7d58d273ffaf7ef288d85217b8ec7d94e9 /lib/impure/re.nim
parent9fc98cefda91d7199e46d271a466a07867354d91 (diff)
downloadNim-44c4b945eb8e5255aa128dad2553e290eebdd24b.tar.gz
pegs/re =~ warns about scope rule change; improved docs
Diffstat (limited to 'lib/impure/re.nim')
-rw-r--r--lib/impure/re.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/impure/re.nim b/lib/impure/re.nim
index ef02a3b1d..5041ed3ba 100644
--- a/lib/impure/re.nim
+++ b/lib/impure/re.nim
@@ -242,6 +242,7 @@ template `=~` *(s: string, pattern: TRegEx): expr =
   bind maxSubPatterns
   when not definedInScope(matches):
     var matches {.inject.}: array[0..maxSubPatterns-1, string]
+    {.warning: "injected 'matches' might be affected by new scoping rules in 0.9.4".}
   match(s, pattern, matches)
 
 # ------------------------- more string handling ------------------------------