Commit cb41203e authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(octave-font-lock-keywords): To font-lock the

builtin operators, use `font-lock-builtin-face' for Emacs and
`font-lock-preprocessor-face' otherwise.
parent 11b42ef4
...@@ -176,7 +176,9 @@ parenthetical grouping.") ...@@ -176,7 +176,9 @@ parenthetical grouping.")
'font-lock-keyword-face) 'font-lock-keyword-face)
;; Fontify all builtin operators. ;; Fontify all builtin operators.
(cons "\\(&\\||\\|<=\\|>=\\|==\\|<\\|>\\|!=\\|!\\)" (cons "\\(&\\||\\|<=\\|>=\\|==\\|<\\|>\\|!=\\|!\\)"
'font-lock-builtin-face) (if (boundp 'font-lock-builtin-face)
'font-lock-builtin-face
'font-lock-preprocessor-face))
;; Fontify all builtin variables. ;; Fontify all builtin variables.
(cons (concat "\\<\\(" (cons (concat "\\<\\("
(mapconcat 'identity octave-variables "\\|") (mapconcat 'identity octave-variables "\\|")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment