summaryrefslogtreecommitdiff
path: root/lisp/=ada.el
diff options
context:
space:
mode:
authorSimon Marshall <simon@gnu.org>1995-03-02 11:10:55 +0000
committerSimon Marshall <simon@gnu.org>1995-03-02 11:10:55 +0000
commite46a8026b31e604765adbc75905ce8f2bacdcf4c (patch)
treefd492eb66f772ab749988b3ba498959bb3f8195e /lisp/=ada.el
parent62ad8bc08f46beb97a6a4e78d7ca54cdd8011119 (diff)
downloademacs-e46a8026b31e604765adbc75905ce8f2bacdcf4c.tar.gz
Use font-lock-maximum-decoration to set ada-font-lock-keywords.
Diffstat (limited to 'lisp/=ada.el')
-rw-r--r--lisp/=ada.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/=ada.el b/lisp/=ada.el
index bae849bbbd1..bf7633bf82d 100644
--- a/lisp/=ada.el
+++ b/lisp/=ada.el
@@ -140,7 +140,9 @@ This does fairly subdued highlighting.")
"For consideration as a value of `ada-font-lock-keywords'.
This does a lot more highlighting.")
-(defvar ada-font-lock-keywords ada-font-lock-keywords-1
+(defvar ada-font-lock-keywords (if font-lock-maximum-decoration
+ ada-font-lock-keywords-2
+ ada-font-lock-keywords-1)
"Additional expressions to highlight in Ada mode.")
(defvar ada-mode-map nil