summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/regexp-opt.el
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>2010-09-16 11:11:13 +0900
committerKenichi Handa <handa@m17n.org>2010-09-16 11:11:13 +0900
commit38d50547c2a8195bed0aaeafbbc4c0f277d4e416 (patch)
tree388416c9f2cc4746d0d2d9e525a50a6c2f00f3d4 /lisp/emacs-lisp/regexp-opt.el
parentfa3f60399014127e711f3f438004950cba0bddb9 (diff)
parent6139f995addcb8fce63deb30c7ed0e6f2b618b02 (diff)
downloademacs-38d50547c2a8195bed0aaeafbbc4c0f277d4e416.tar.gz
emacs-38d50547c2a8195bed0aaeafbbc4c0f277d4e416.tar.bz2
emacs-38d50547c2a8195bed0aaeafbbc4c0f277d4e416.zip
merge trunk
Diffstat (limited to 'lisp/emacs-lisp/regexp-opt.el')
-rw-r--r--lisp/emacs-lisp/regexp-opt.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/regexp-opt.el b/lisp/emacs-lisp/regexp-opt.el
index 78eba19a253..a1494741572 100644
--- a/lisp/emacs-lisp/regexp-opt.el
+++ b/lisp/emacs-lisp/regexp-opt.el
@@ -120,7 +120,7 @@ This means the number of non-shy regexp grouping constructs
(string-match regexp "")
;; Count the number of open parentheses in REGEXP.
(let ((count 0) start last)
- (while (string-match "\\\\(\\(\\?:\\)?" regexp start)
+ (while (string-match "\\\\(\\(\\?[0-9]*:\\)?" regexp start)
(setq start (match-end 0)) ; Start of next search.
(when (and (not (match-beginning 1))
(subregexp-context-p regexp (match-beginning 0) last))