Change face used for fortran.el directives
authorGlenn Morris <rgm@gnu.org>
Mon, 11 Jun 2012 21:07:58 +0000 (17:07 -0400)
committerGlenn Morris <rgm@gnu.org>
Mon, 11 Jun 2012 21:07:58 +0000 (17:07 -0400)
* lisp/progmodes/fortran.el (fortran-font-lock-keywords-3):
Use preprocessor face for directives.
(fortran-directive-re): Doc fix.

lisp/ChangeLog
lisp/progmodes/fortran.el

index cbc7518..c3930f2 100644 (file)
@@ -1,3 +1,9 @@
+2012-06-11  Glenn Morris  <rgm@gnu.org>
+
+       * progmodes/fortran.el (fortran-font-lock-keywords-3):
+       Use preprocessor face for directives.
+       (fortran-directive-re): Doc fix.
+
 2012-06-11  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * emacs-lisp/cl-macs.el (cl-parse-loop-clause): Fix error in recent
index 8d488fe..665b076 100644 (file)
@@ -165,7 +165,7 @@ allow trailing comments on a line."
 (defcustom fortran-directive-re
   "^[ \t]*#.*"
   "Regexp to match a directive line.
-The matching text will be fontified with `font-lock-keyword-face'.
+The matching text will be fontified with `font-lock-preprocessor-face'.
 The matching line will be given zero indentation."
   :version "22.1"
   :type    'regexp
@@ -452,7 +452,7 @@ The only difference is, it returns t in a case when the default returns nil."
     ;; Standard continuation character and in a TAB-formatted line.
     '("^ \\{5\\}\\([^ 0\n]\\)" 1 font-lock-string-face)
     '("^\t\\([1-9]\\)"         1 font-lock-string-face))
-   `((,fortran-directive-re (0 font-lock-keyword-face t)))
+   `((,fortran-directive-re (0 font-lock-preprocessor-face t)))
    ;; `fortran-font-lock-keywords-2' without types (see above).
    (cdr (nthcdr (length fortran-font-lock-keywords-1)
                 fortran-font-lock-keywords-2)))