aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Marshall <[email protected]>1995-03-02 11:10:55 +0000
committerSimon Marshall <[email protected]>1995-03-02 11:10:55 +0000
commit352e62b7752a5f676a7d0ac09e3ef24dfd9322f5 (patch)
treeab1376ee51eb23fb0415f78a9514fb064601fefe
parentc1a644d3ea4f398209ef7b57e9797b5c961c86c8 (diff)
Use font-lock-maximum-decoration to set ada-font-lock-keywords.
-rw-r--r--lisp/ada.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/ada.el b/lisp/ada.el
index bae849bbbd..bf7633bf82 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