aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/octave-mod.el
diff options
context:
space:
mode:
authorGerd Moellmann <[email protected]>2000-03-09 13:29:44 +0000
committerGerd Moellmann <[email protected]>2000-03-09 13:29:44 +0000
commitcb41203e13924b88862076377be69827d3f80ee5 (patch)
treee001380b69126f548ee85cb357cdc9f42af800b2 /lisp/progmodes/octave-mod.el
parent11b42ef4cd754a74f739f1d5a8b17a6661b371f5 (diff)
(octave-font-lock-keywords): To font-lock the
builtin operators, use `font-lock-builtin-face' for Emacs and `font-lock-preprocessor-face' otherwise.
Diffstat (limited to 'lisp/progmodes/octave-mod.el')
-rw-r--r--lisp/progmodes/octave-mod.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/progmodes/octave-mod.el b/lisp/progmodes/octave-mod.el
index d96b2d11fb..6310c8aae8 100644
--- a/lisp/progmodes/octave-mod.el
+++ b/lisp/progmodes/octave-mod.el
@@ -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 "\\|")