diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2010-10-17 14:59:58 -0400 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2010-10-17 14:59:58 -0400 |
commit | a7769c306046af407eade15b3fc85797b5aefd43 (patch) | |
tree | 2a37a2a5259279632d08259b6ec642783825de10 /lisp/emacs-lisp/regexp-opt.el | |
parent | 8348910a636f3a40ca2bb1a6231d5aa5f0a1a8e7 (diff) | |
download | emacs-a7769c306046af407eade15b3fc85797b5aefd43.tar.gz emacs-a7769c306046af407eade15b3fc85797b5aefd43.tar.bz2 emacs-a7769c306046af407eade15b3fc85797b5aefd43.zip |
(regexp-opt-group, regexp-opt-charset): Turn comments into docstrings
Diffstat (limited to 'lisp/emacs-lisp/regexp-opt.el')
-rw-r--r-- | lisp/emacs-lisp/regexp-opt.el | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/lisp/emacs-lisp/regexp-opt.el b/lisp/emacs-lisp/regexp-opt.el index 78eba19a253..f70ad4047a7 100644 --- a/lisp/emacs-lisp/regexp-opt.el +++ b/lisp/emacs-lisp/regexp-opt.el @@ -136,11 +136,10 @@ This means the number of non-shy regexp grouping constructs (require 'cl)) (defun regexp-opt-group (strings &optional paren lax) - ;; Return a regexp to match a string in the sorted list STRINGS. - ;; If PAREN non-nil, output regexp parentheses around returned regexp. - ;; If LAX non-nil, don't output parentheses if it doesn't require them. - ;; Merges keywords to avoid backtracking in Emacs' regexp matcher. - + "Return a regexp to match a string in the sorted list STRINGS. +If PAREN non-nil, output regexp parentheses around returned regexp. +If LAX non-nil, don't output parentheses if it doesn't require them. +Merges keywords to avoid backtracking in Emacs' regexp matcher." ;; The basic idea is to find the shortest common prefix or suffix, remove it ;; and recurse. If there is no prefix, we divide the list into two so that ;; \(at least) one half will have at least a one-character common prefix. @@ -234,9 +233,7 @@ This means the number of non-shy regexp grouping constructs (defun regexp-opt-charset (chars) - ;; - ;; Return a regexp to match a character in CHARS. - ;; + "Return a regexp to match a character in CHARS." ;; The basic idea is to find character ranges. Also we take care in the ;; position of character set meta characters in the character set regexp. ;; |