comparison lisp/progmodes/octave-mod.el @ 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 313a03652df3
children 31e7749d1e1a
comparison
equal deleted inserted replaced
28069:bd586b823051 28070:7079931424be
174 (mapconcat 'identity octave-text-functions "\\|") 174 (mapconcat 'identity octave-text-functions "\\|")
175 "\\)\\>") 175 "\\)\\>")
176 'font-lock-keyword-face) 176 'font-lock-keyword-face)
177 ;; Fontify all builtin operators. 177 ;; Fontify all builtin operators.
178 (cons "\\(&\\||\\|<=\\|>=\\|==\\|<\\|>\\|!=\\|!\\)" 178 (cons "\\(&\\||\\|<=\\|>=\\|==\\|<\\|>\\|!=\\|!\\)"
179 'font-lock-builtin-face) 179 (if (boundp 'font-lock-builtin-face)
180 'font-lock-builtin-face
181 'font-lock-preprocessor-face))
180 ;; Fontify all builtin variables. 182 ;; Fontify all builtin variables.
181 (cons (concat "\\<\\(" 183 (cons (concat "\\<\\("
182 (mapconcat 'identity octave-variables "\\|") 184 (mapconcat 'identity octave-variables "\\|")
183 "\\)\\>") 185 "\\)\\>")
184 'font-lock-variable-name-face) 186 'font-lock-variable-name-face)