Mercurial > emacs
comparison lisp/progmodes/fortran.el @ 20277:b7f5af6127d5
(fortran-imenu-generic-expression): Match
<type>*<mumble> and un-named block data, allow some continuations.
author | Dave Love <fx@gnu.org> |
---|---|
date | Tue, 18 Nov 1997 23:21:34 +0000 |
parents | 38616c4cf58c |
children | 918448e5d294 |
comparison
equal
deleted
inserted
replaced
20276:b53b022d2239 | 20277:b7f5af6127d5 |
---|---|
368 | 368 |
369 (defvar fortran-font-lock-keywords fortran-font-lock-keywords-1 | 369 (defvar fortran-font-lock-keywords fortran-font-lock-keywords-1 |
370 "Default expressions to highlight in Fortran mode.") | 370 "Default expressions to highlight in Fortran mode.") |
371 | 371 |
372 (defvar fortran-imenu-generic-expression | 372 (defvar fortran-imenu-generic-expression |
373 (list | 373 ;; These patterns could be confused by sequence nos. in cols 72+ and |
374 (list | 374 ;; don't allow continuations everywhere. |
375 nil | 375 '((nil |
376 ;; Lines are: 1. leading whitespace; 2. function declaration | 376 ;; Lines below are: 1. leading whitespace; 2. function |
377 ;; with optional type, e.g. `real', `double precision', [which | 377 ;; declaration with optional type, e.g. `real', `real*4', |
378 ;; will be fooled by `end function' allowed by G77]; 3. untyped | 378 ;; character(*), `double precision' and possible statement |
379 ;; declarations; 4. the name to index. | 379 ;; continuation; 3. untyped declarations; 4. the variable to |
380 ;; index. [This will be fooled by `end function' allowed by G77. | |
381 ;; Also, it assumes sensible whitespace is employed.] | |
380 "^\\s-+\\(\ | 382 "^\\s-+\\(\ |
381 \\(\\sw\\|\\s-\\)*\\<function\\|\ | 383 \\(\\sw\\|\\s-\\|[*()+]\\)*\\<function\\|\ |
382 subroutine\\|entry\\|block\\s-*data\\|program\\)[ \t]+\ | 384 subroutine\\|entry\\|block\\s-*data\\|program\\)[ \t+]+\ |
383 \\(\\sw+\\)" | 385 \\(\\sw+\\)" |
384 3)) | 386 3) |
385 "imenu generic expression for `imenu-ci-default-create-index-function'.") | 387 ;; Un-named block data |
388 (nil "^\\s-+\\(block\\s-*data\\)\\s-*$" 1)) | |
389 "imenu generic expression for `imenu-default-create-index-function'.") | |
386 | 390 |
387 (defvar fortran-mode-map () | 391 (defvar fortran-mode-map () |
388 "Keymap used in Fortran mode.") | 392 "Keymap used in Fortran mode.") |
389 (if fortran-mode-map | 393 (if fortran-mode-map |
390 () | 394 () |