summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2002-03-16 06:52:31 +0000
committerRichard M. Stallman <rms@gnu.org>2002-03-16 06:52:31 +0000
commit95f433f40b56144b5714993f4d4d951c1a24c471 (patch)
treebf2c0cd37f83900f560d46488216b18ec0b78d38
parent7e98f74cdf49a6f5a554e4910f51c00ebef5a48f (diff)
downloademacs-95f433f40b56144b5714993f4d4d951c1a24c471.tar.gz
(cperl-imenu--function-name-regexp-perl):
Move definition above cperl-outline-regexp.
-rw-r--r--lisp/progmodes/cperl-mode.el16
1 files changed, 8 insertions, 8 deletions
diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el
index 2605e259e1d..293e236b913 100644
--- a/lisp/progmodes/cperl-mode.el
+++ b/lisp/progmodes/cperl-mode.el
@@ -1241,6 +1241,14 @@ the faces: please specify bold, italic, underline, shadow and box.)
The expansion is entirely correct because it uses the C preprocessor."
t)
+(defvar cperl-imenu--function-name-regexp-perl
+ (concat
+ "^\\("
+ "[ \t]*\\(sub\\|package\\)[ \t\n]+\\([a-zA-Z_0-9:']+\\)[ \t]*\\(([^()]*)[ \t]*\\)?"
+ "\\|"
+ "=head\\([12]\\)[ \t]+\\([^\n]+\\)$"
+ "\\)"))
+
(defvar cperl-outline-regexp
(concat cperl-imenu--function-name-regexp-perl "\\|" "\\`"))
@@ -4297,14 +4305,6 @@ indentation and initial hashes. Behaves usually outside of comment."
;; Previous space could have gone:
(or (memq (preceding-char) '(?\ ?\t)) (insert " "))))))
-(defvar cperl-imenu--function-name-regexp-perl
- (concat
- "^\\("
- "[ \t]*\\(sub\\|package\\)[ \t\n]+\\([a-zA-Z_0-9:']+\\)[ \t]*\\(([^()]*)[ \t]*\\)?"
- "\\|"
- "=head\\([12]\\)[ \t]+\\([^\n]+\\)$"
- "\\)"))
-
(defun cperl-imenu-addback (lst &optional isback name)
;; We suppose that the lst is a DAG, unless the first element only
;; loops back, and ISBACK is set. Thus this function cannot be