Function: cperl-regext-to-level-start
cperl-regext-to-level-start is an interactive and byte-compiled
function defined in cperl-mode.el.gz.
Signature
(cperl-regext-to-level-start)
Documentation
Goto start of an enclosing group in regexp.
We suppose that the regexp is scanned already.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/cperl-mode.el.gz
(defun cperl-regext-to-level-start ()
"Goto start of an enclosing group in regexp.
We suppose that the regexp is scanned already."
(interactive)
(let ((limit (cperl-make-regexp-x)) done)
(while (not done)
(or (eq (following-char) ?\()
(search-backward "(" (1+ limit) t)
(error "Cannot find `(' which starts a group"))
(setq done
(save-excursion
(skip-chars-backward "\\\\")
(looking-at "\\(\\\\\\\\\\)*(")))
(or done (forward-char -1)))))