aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2002-03-16 06:52:31 +0000
committerRichard M. Stallman2002-03-16 06:52:31 +0000
commit95f433f40b56144b5714993f4d4d951c1a24c471 (patch)
treebf2c0cd37f83900f560d46488216b18ec0b78d38
parent7e98f74cdf49a6f5a554e4910f51c00ebef5a48f (diff)
downloademacs-95f433f40b56144b5714993f4d4d951c1a24c471.tar.gz
emacs-95f433f40b56144b5714993f4d4d951c1a24c471.zip
(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.)
1241The expansion is entirely correct because it uses the C preprocessor." 1241The expansion is entirely correct because it uses the C preprocessor."
1242 t) 1242 t)
1243 1243
1244(defvar cperl-imenu--function-name-regexp-perl
1245 (concat
1246 "^\\("
1247 "[ \t]*\\(sub\\|package\\)[ \t\n]+\\([a-zA-Z_0-9:']+\\)[ \t]*\\(([^()]*)[ \t]*\\)?"
1248 "\\|"
1249 "=head\\([12]\\)[ \t]+\\([^\n]+\\)$"
1250 "\\)"))
1251
1244(defvar cperl-outline-regexp 1252(defvar cperl-outline-regexp
1245 (concat cperl-imenu--function-name-regexp-perl "\\|" "\\`")) 1253 (concat cperl-imenu--function-name-regexp-perl "\\|" "\\`"))
1246 1254
@@ -4297,14 +4305,6 @@ indentation and initial hashes. Behaves usually outside of comment."
4297 ;; Previous space could have gone: 4305 ;; Previous space could have gone:
4298 (or (memq (preceding-char) '(?\ ?\t)) (insert " ")))))) 4306 (or (memq (preceding-char) '(?\ ?\t)) (insert " "))))))
4299 4307
4300(defvar cperl-imenu--function-name-regexp-perl
4301 (concat
4302 "^\\("
4303 "[ \t]*\\(sub\\|package\\)[ \t\n]+\\([a-zA-Z_0-9:']+\\)[ \t]*\\(([^()]*)[ \t]*\\)?"
4304 "\\|"
4305 "=head\\([12]\\)[ \t]+\\([^\n]+\\)$"
4306 "\\)"))
4307
4308(defun cperl-imenu-addback (lst &optional isback name) 4308(defun cperl-imenu-addback (lst &optional isback name)
4309 ;; We suppose that the lst is a DAG, unless the first element only 4309 ;; We suppose that the lst is a DAG, unless the first element only
4310 ;; loops back, and ISBACK is set. Thus this function cannot be 4310 ;; loops back, and ISBACK is set. Thus this function cannot be