From 112cde69c84012f28bed0eedc83c1e521baf285f Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Mon, 13 Jun 2016 12:05:21 +0200 Subject: de-deprecate re.nim --- lib/impure/re.nim | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'lib/impure/re.nim') diff --git a/lib/impure/re.nim b/lib/impure/re.nim index d49c6d1c1..bf397550a 100644 --- a/lib/impure/re.nim +++ b/lib/impure/re.nim @@ -7,8 +7,11 @@ # distribution, for details about the copyright. # -## Regular expression support for Nim. Deprecated. Consider using the ``nre`` -## or ``pegs`` modules instead. +## Regular expression support for Nim. This module still has some +## obscure bugs and limitations, +## consider using the ``nre`` or ``pegs`` modules instead. +## We had to de-deprecate this module since too much code relies on it +## and many people prefer its API over ``nre``'s. ## ## **Note:** The 're' proc defaults to the **extended regular expression ## syntax** which lets you use whitespace freely to make your regexes readable. @@ -28,8 +31,6 @@ import pcre, strutils, rtarrays -{.deprecated.} - const MaxSubpatterns* = 20 ## defines the maximum number of subpatterns that can be captured. @@ -78,7 +79,7 @@ proc finalizeRegEx(x: Regex) = if not isNil(x.e): pcre.free_substring(cast[cstring](x.e)) -proc re*(s: string, flags = {reExtended, reStudy}): Regex {.deprecated.} = +proc re*(s: string, flags = {reExtended, reStudy}): Regex = ## 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]")``. -- cgit 1.4.1-2-gfad0 '/ahoang/Nim/diff/compiler/evaltempl.nim?h=devel&id=8f5bf0652828e1a477494976e40c1839270c2747'>diff stats
path: root/compiler/evaltempl.nim
blob: 78cdbb45fd7815fc8bd26acbc4376d72202c158c (plain) (tree)
1
2
3
4