aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love1998-12-11 17:40:18 +0000
committerDave Love1998-12-11 17:40:18 +0000
commit645ff508dde95b470daf511876177adcb1734f54 (patch)
treeb2eaf3e39d35df2d507d168894e73bd2d6350004
parent7d2767808eb12de1c63cf58703f02d1bf83ef5c0 (diff)
downloademacs-645ff508dde95b470daf511876177adcb1734f54.tar.gz
emacs-645ff508dde95b470daf511876177adcb1734f54.zip
(fortran-font-lock-keywords-1): Warp
forward-sexp in condition-case.
-rw-r--r--lisp/progmodes/fortran.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/progmodes/fortran.el b/lisp/progmodes/fortran.el
index 004fe946436..312fb682930 100644
--- a/lisp/progmodes/fortran.el
+++ b/lisp/progmodes/fortran.el
@@ -283,8 +283,9 @@ format style.")
283; (mapcar (lambda (x) (concat "end[ \t]*" x)) structured-types) 283; (mapcar (lambda (x) (concat "end[ \t]*" x)) structured-types)
284; structured-types 284; structured-types
285; other-types)))) 285; other-types))))
286 ;; Fixme:
286 ;; Derived from the above, changing the escaped `[ \t]*'s back. 287 ;; Derived from the above, changing the escaped `[ \t]*'s back.
287 ;; Should be done with a `replace all in string' function... 288 ;; Should be done with a `replace all in string' function at compile time...
288 "byte\\|c\\(haracter\\|om\\(mon\\|plex\\)\\)\\|d\\(ata\\|imension\\|ouble[ \t]*\\(complex\\|precision\\)\\)\\|e\\(nd[ \t]*\\(map\\|structure\\|union\\)\\|quivalence\\|xternal\\)\\|i\\(mplicit[ \t]*\\(byte\\|c\\(haracter\\|omplex\\)\\|double[ \t]*\\(complex\\|precision\\)\\|integer\\|logical\\|none\\|real\\)\\|nt\\(eger\\|rinsic\\)\\)\\|logical\\|map\\|none\\|parameter\\|re\\(al\\|cord\\)\\|s\\(ave\\|tructure\\)\\|union") 289 "byte\\|c\\(haracter\\|om\\(mon\\|plex\\)\\)\\|d\\(ata\\|imension\\|ouble[ \t]*\\(complex\\|precision\\)\\)\\|e\\(nd[ \t]*\\(map\\|structure\\|union\\)\\|quivalence\\|xternal\\)\\|i\\(mplicit[ \t]*\\(byte\\|c\\(haracter\\|omplex\\)\\|double[ \t]*\\(complex\\|precision\\)\\|integer\\|logical\\|none\\|real\\)\\|nt\\(eger\\|rinsic\\)\\)\\|logical\\|map\\|none\\|parameter\\|re\\(al\\|cord\\)\\|s\\(ave\\|tructure\\)\\|union")
289 (fortran-keywords 290 (fortran-keywords
290 (eval-when-compile 291 (eval-when-compile
@@ -352,7 +353,10 @@ format style.")
352 ;; Fontify each declaration item (or just the /.../ block name). 353 ;; Fontify each declaration item (or just the /.../ block name).
353 '(font-lock-match-c-style-declaration-item-and-skip-to-next 354 '(font-lock-match-c-style-declaration-item-and-skip-to-next
354 ;; Start after any *(...) expression. 355 ;; Start after any *(...) expression.
355 (and (match-beginning 15) (forward-sexp)) 356 (and (match-beginning 15)
357 (condition-case nil
358 (forward-sexp)
359 (error nil)))
356 ;; No need to clean up. 360 ;; No need to clean up.
357 nil 361 nil
358 ;; Fontify as a variable name, functions are 362 ;; Fontify as a variable name, functions are