changeset 28070:7079931424be

(octave-font-lock-keywords): To font-lock the builtin operators, use `font-lock-builtin-face' for Emacs and `font-lock-preprocessor-face' otherwise.
author Gerd Moellmann <gerd@gnu.org>
date Thu, 09 Mar 2000 13:29:44 +0000
parents bd586b823051
children 2420cf232647
files lisp/progmodes/octave-mod.el
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/octave-mod.el	Thu Mar 09 13:28:42 2000 +0000
+++ b/lisp/progmodes/octave-mod.el	Thu Mar 09 13:29:44 2000 +0000
@@ -176,7 +176,9 @@
 	 '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 "\\|")