From: Dave Love Date: Tue, 18 Nov 1997 23:21:34 +0000 (+0000) Subject: (fortran-imenu-generic-expression): Match X-Git-Tag: emacs-20.3~2796 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=240e9cda7d93f1f2dce293b0d10ab9552176bc09;p=emacs.git (fortran-imenu-generic-expression): Match * and un-named block data, allow some continuations. --- diff --git a/lisp/progmodes/fortran.el b/lisp/progmodes/fortran.el index fdf5620584a..ae2c5ece903 100644 --- a/lisp/progmodes/fortran.el +++ b/lisp/progmodes/fortran.el @@ -370,19 +370,23 @@ This variable used in TAB format mode.") "Default expressions to highlight in Fortran mode.") (defvar fortran-imenu-generic-expression - (list - (list - nil - ;; Lines are: 1. leading whitespace; 2. function declaration - ;; with optional type, e.g. `real', `double precision', [which - ;; will be fooled by `end function' allowed by G77]; 3. untyped - ;; declarations; 4. the name to index. + ;; These patterns could be confused by sequence nos. in cols 72+ and + ;; don't allow continuations everywhere. + '((nil + ;; Lines below are: 1. leading whitespace; 2. function + ;; declaration with optional type, e.g. `real', `real*4', + ;; character(*), `double precision' and possible statement + ;; continuation; 3. untyped declarations; 4. the variable to + ;; index. [This will be fooled by `end function' allowed by G77. + ;; Also, it assumes sensible whitespace is employed.] "^\\s-+\\(\ -\\(\\sw\\|\\s-\\)*\\