comparison lisp/progmodes/f90.el @ 85699:f240b732dbe0

(f90-font-lock-keywords-1): Revert change merged in from EMACS_22 branch. The trunk version does this differently.
author Glenn Morris <rgm@gnu.org>
date Sat, 27 Oct 2007 19:12:27 +0000
parents b210bba3f477
children 107ccd98fa12 880960b70474
comparison
equal deleted inserted replaced
85698:a08b0eb5e464 85699:f240b732dbe0
538 ;; exploit that hack. 538 ;; exploit that hack.
539 ;; The "function foo" bit is correctly fontified by keywords-1. 539 ;; The "function foo" bit is correctly fontified by keywords-1.
540 ;; TODO ? actually check for balanced parens in that case. 540 ;; TODO ? actually check for balanced parens in that case.
541 '("^[ \t0-9]*\\(?:pure\\|elemental\\)?[ \t]*\ 541 '("^[ \t0-9]*\\(?:pure\\|elemental\\)?[ \t]*\
542 \\(real\\|integer\\|c\\(haracter\\|omplex\\)\\|\ 542 \\(real\\|integer\\|c\\(haracter\\|omplex\\)\\|\
543 enumerator\\|generic\\|procedure\\|logical\\|double[ \t]*precision\\|type[ \t]*(\\sw+)\\)\ 543 enumerator\\|generic\\|procedure\\|logical\\|double[ \t]*precision\\)\
544 \\(.*::\\|[ \t]*(.*)\\)?\\([^&!\n]*\\)" 544 \\(.*::\\|[ \t]*(.*)\\)?\\([^&!\n]*\\)"
545 (1 font-lock-type-face t) (4 font-lock-variable-name-face t)) 545 (1 font-lock-type-face t) (4 font-lock-variable-name-face t))
546 ;; Derived type/class variables. 546 ;; Derived type/class variables.
547 ;; TODO ? If we just highlighted the "type" part, rather than 547 ;; TODO ? If we just highlighted the "type" part, rather than
548 ;; "type(...)", this could be in the previous expression. And this 548 ;; "type(...)", this could be in the previous expression. And this
1506 (defun f90-end-of-subprogram () 1506 (defun f90-end-of-subprogram ()
1507 "Move point to the end of the current subprogram. 1507 "Move point to the end of the current subprogram.
1508 Return (TYPE NAME), or nil if not found." 1508 Return (TYPE NAME), or nil if not found."
1509 (interactive) 1509 (interactive)
1510 (let ((case-fold-search t) 1510 (let ((case-fold-search t)
1511 (count 1) 1511 (count 1)
1512 matching-end) 1512 matching-end)
1513 (end-of-line) 1513 (end-of-line)
1514 (while (and (> count 0) 1514 (while (and (> count 0)
1515 (re-search-forward f90-program-block-re nil 'move)) 1515 (re-search-forward f90-program-block-re nil 'move))
1516 (beginning-of-line) 1516 (beginning-of-line)