From: Dave Love Date: Fri, 31 Oct 1997 23:17:17 +0000 (+0000) Subject: (fortran-imenu-generic-expression): New variable. X-Git-Tag: emacs-20.3~2868 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9645c179af0e934c92780525788664e42c56e07a;p=emacs.git (fortran-imenu-generic-expression): New variable. (fortran-mode): Use it. --- diff --git a/lisp/progmodes/fortran.el b/lisp/progmodes/fortran.el index bf79414dd70..6d09a86a7ee 100644 --- a/lisp/progmodes/fortran.el +++ b/lisp/progmodes/fortran.el @@ -369,6 +369,33 @@ This variable used in TAB format mode.") (defvar fortran-font-lock-keywords fortran-font-lock-keywords-1 "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. + "^\\s-+\\(\ +\\(\\sw\\|\\s-\\)*\\