Deprecate re

This commit is contained in:
Flaviu Tamas
2015-05-26 19:51:43 -04:00
parent 15ef227c48
commit 8caa5cd292

View File

@@ -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]")``.