]> git.eshelyaron.com Git - emacs.git/commitdiff
(octave-font-lock-keywords): To font-lock the
authorGerd Moellmann <gerd@gnu.org>
Thu, 9 Mar 2000 13:29:44 +0000 (13:29 +0000)
committerGerd Moellmann <gerd@gnu.org>
Thu, 9 Mar 2000 13:29:44 +0000 (13:29 +0000)
builtin operators, use `font-lock-builtin-face' for Emacs and
`font-lock-preprocessor-face' otherwise.

lisp/progmodes/octave-mod.el

index d96b2d11fb5b65308cfb459c6ddffb04a14e3a00..6310c8aae80fde936651fd93570c2bacac53d76f 100644 (file)
@@ -176,7 +176,9 @@ parenthetical grouping.")
         'font-lock-keyword-face)
    ;; Fontify all builtin operators.
    (cons "\\(&\\||\\|<=\\|>=\\|==\\|<\\|>\\|!=\\|!\\)"
-        'font-lock-builtin-face)
+        (if (boundp 'font-lock-builtin-face)
+            'font-lock-builtin-face
+          'font-lock-preprocessor-face))
    ;; Fontify all builtin variables.
    (cons (concat "\\<\\("
                 (mapconcat 'identity octave-variables "\\|")