]> git.eshelyaron.com Git - emacs.git/commitdiff
(cperl-imenu--function-name-regexp-perl):
authorRichard M. Stallman <rms@gnu.org>
Sat, 16 Mar 2002 06:52:31 +0000 (06:52 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 16 Mar 2002 06:52:31 +0000 (06:52 +0000)
Move definition above cperl-outline-regexp.

lisp/progmodes/cperl-mode.el

index 2605e259e1dd6b7c878d73920da4f2a9e37ed971..293e236b913625b2ad25aff1cfc692c1cfa4796a 100644 (file)
@@ -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