diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-06-13 12:05:21 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2016-06-13 12:18:44 +0200 |
commit | 112cde69c84012f28bed0eedc83c1e521baf285f (patch) | |
tree | f0e51b494eb32bd47139de478f480195ff20b436 /lib/impure | |
parent | 792b99442ac8ecb5d16f88808b4df1a308f9506d (diff) | |
download | Nim-112cde69c84012f28bed0eedc83c1e521baf285f.tar.gz |
de-deprecate re.nim
Diffstat (limited to 'lib/impure')
-rw-r--r-- | lib/impure/re.nim | 11 |
1 files changed, 6 insertions, 5 deletions
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]")``. |