]> code.delx.au - gnu-emacs/blobdiff - lisp/ada.el
(dired-noselect): Resolve symbolic links in argument.
[gnu-emacs] / lisp / ada.el
index 5ed51e320caa17a5174b9f3aba91f6c452e49a5c..bf7633bf82d47777f2416ba42c5393b31e951d5b 100644 (file)
@@ -88,7 +88,7 @@ This does fairly subdued highlighting.")
 ;    ("abort" "abs" "abstract" "accept" "access" "aliased" "all"
 ;     "and" "array" "at" "begin" "case" "declare" "delay" "delta"
 ;     "digits" "do" "else" "elsif" "entry" "exception" "exit" "for"
-;     "generic" "if" "is" "limited" "loop" "mod" "not"
+;     "generic" "if" "in" "is" "limited" "loop" "mod" "not"
 ;     "null" "or" "others" "private" "protected"
 ;     "range" "record" "rem" "renames" "requeue" "return" "reverse"
 ;     "select" "separate" "tagged" "task" "terminate" "then" "until"
@@ -97,7 +97,7 @@ This does fairly subdued highlighting.")
            "l\\(iased\\|l\\)\\|nd\\|rray\\|t\\)\\|begin\\|case\\|"
            "d\\(e\\(clare\\|l\\(ay\\|ta\\)\\)\\|igits\\|o\\)\\|"
            "e\\(ls\\(e\\|if\\)\\|ntry\\|x\\(ception\\|it\\)\\)\\|for\\|"
-           "generic\\|i[fs]\\|l\\(imited\\|oop\\)\\|mod\\|n\\(ot\\|ull\\)\\|"
+           "generic\\|i[fns]\\|l\\(imited\\|oop\\)\\|mod\\|n\\(ot\\|ull\\)\\|"
            "o\\(r\\|thers\\)\\|pr\\(ivate\\|otected\\)\\|"
            "r\\(ange\\|e\\(cord\\|m\\|names\\|queue\\|turn\\|verse\\)\\)\\|"
            "se\\(lect\\|parate\\)\\|"
@@ -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
@@ -193,7 +195,6 @@ This does a lot more highlighting.")
 
 (defvar ada-comment-end-column)
 
-;;;###autoload
 (defun ada-mode ()
 "This is a mode intended to support program development in Ada.
 Most control constructs and declarations of Ada can be inserted in the buffer
@@ -234,7 +235,7 @@ Variable `ada-indent' controls the number of spaces for indent/undent."
   (setq ada-comment-end-column 72)
   (set-syntax-table ada-mode-syntax-table)
   (make-local-variable 'paragraph-start)
-  (setq paragraph-start (concat "^$\\|" page-delimiter))
+  (setq paragraph-start (concat "$\\|" page-delimiter))
   (make-local-variable 'paragraph-separate)
   (setq paragraph-separate paragraph-start)
   (make-local-variable 'paragraph-ignore-fill-prefix)