summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorFlaviu Tamas <tamasflaviu@gmail.com>2015-05-26 20:02:51 -0400
committerFlaviu Tamas <tamasflaviu@gmail.com>2015-06-07 13:13:04 -0400
commita707f8de65fb9ece674b926a529044fc206e43b3 (patch)
tree0ab3ced8876820ef51c43a17c6db4329af46f1bc /lib
parent4fbd95549dd65b98e14f180ea9f70a72074200f1 (diff)
downloadNim-a707f8de65fb9ece674b926a529044fc206e43b3.tar.gz
Edit re and nre doc comments
Diffstat (limited to 'lib')
-rw-r--r--lib/impure/nre.nim19
-rw-r--r--lib/impure/re.nim2
2 files changed, 1 insertions, 20 deletions
diff --git a/lib/impure/nre.nim b/lib/impure/nre.nim
index c58cf2501..5a6050ac2 100644
--- a/lib/impure/nre.nim
+++ b/lib/impure/nre.nim
@@ -22,25 +22,6 @@ from unicode import runeLenAt
 ##
 ## A regular expression library for Nim using PCRE to do the hard work.
 ##
-## Why?
-## ----
-##
-## The `re.nim <http://nim-lang.org/re.html>`__ module that
-## `Nim <http://nim-lang.org/>`__ provides in its standard library is
-## inadequate:
-##
-## -  It provides only a limited number of captures, while the underling
-##    library (PCRE) allows an unlimited number.
-##
-## -  Instead of having one proc that returns both the bounds and
-##    substring, it has one for the bounds and another for the substring.
-##
-## -  If the splitting regex is empty (``""``), then it returns the input
-##    string instead of following `Perl <https://ideone.com/dDMjmz>`__,
-##    `Javascript <http://jsfiddle.net/xtcbxurg/>`__, and
-##    `Java <https://ideone.com/hYJuJ5>`__'s precedent of returning a list
-##    of each character (``"123".split(re"") == @["1", "2", "3"]``).
-##
 ## Licencing
 ## ---------
 ##
diff --git a/lib/impure/re.nim b/lib/impure/re.nim
index 6aac9593b..0ff6e9555 100644
--- a/lib/impure/re.nim
+++ b/lib/impure/re.nim
@@ -8,7 +8,7 @@
 #    distribution, for details about the copyright.
 #
 
-## Regular expression support for Nim.
+## Regular expression support for Nim. Deprecated in favor of nre.
 ##
 ## **Note:** The 're' proc defaults to the **extended regular expression
 ## syntax** which lets you use whitespace freely to make your regexes readable.