summary refs log tree commit diff stats
path: root/lib/impure/re.nim
diff options
context:
space:
mode:
authorFlaviu Tamas <tamasflaviu@gmail.com>2015-05-26 19:51:43 -0400
committerFlaviu Tamas <tamasflaviu@gmail.com>2015-06-07 13:13:04 -0400
commit8caa5cd29269c67667b3ddaabfdbc6e8d494fbbc (patch)
tree60e93dc74db305662b64128f2f006c09e1be1356 /lib/impure/re.nim
parent15ef227c48417819fab86c86103565e2a324ad92 (diff)
downloadNim-8caa5cd29269c67667b3ddaabfdbc6e8d494fbbc.tar.gz
Deprecate re
Diffstat (limited to 'lib/impure/re.nim')
-rw-r--r--lib/impure/re.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/impure/re.nim b/lib/impure/re.nim
index 5ee6e7005..6aac9593b 100644
--- a/lib/impure/re.nim
+++ b/lib/impure/re.nim
@@ -29,7 +29,7 @@
 import strutils
 import nre, options
 
-type Regex = nre.Regex
+type Regex* = nre.Regex
 
 const
   MaxSubpatterns* {.deprecated.} = 1000
@@ -48,7 +48,7 @@ type
     ## is raised if the pattern is no valid regular expression.
 
 
-proc re*(s: string, flags = {reExtended, reStudy}): Regex =
+proc re*(s: string, flags = {reExtended, reStudy}): Regex {.deprecated.} =
   ## Constructor of regular expressions. Note that Nim's
   ## extended raw string literals support this syntax ``re"[abc]"`` as
   ## a short form for ``re(r"[abc]")``.