[Emacs-ada-mode] PATCH: Change ada-mode.el to recognized Ada05 keywords

Stephen Leake Stephe.Leake at nasa.gov
Sun Jun 29 00:56:35 PDT 2008


jordanb at hafd.org (Jordan Bettis) writes:

> Hi. I've modified ada-mode.el to recognize the overriding,
> synchronized, and interface keywords.

This patch must be against a very old version of Emacs ada-mode; both
the version in Emacs 22.2 and the version at
http://stephe-leake.org/emacs/ada-mode/emacs-ada-mode.html already
support these keywords for fontification.

> It seems to be working well, the only slight trouble is that in the
> ada05 rationale, they show indentation for overriding functions like
> this:
>
> overriding
> function foo (...) return ...;
>
> and ada-mode indents it like this:
>
> overriding
>   function foo (...) return ...;
>
> I'm not entirely sure how to make it do the former (and rather like
> the latter anyway).

I use:

overriding function foo (...) return ...;

But it would be nice if Emacs ada-mode supported the rationale style.

However, the indentation engine is quite complex, and I have not yet
spent the time needed to understand it well enough to fix this.

-- 
-- Stephe



More information about the Emacs-ada-mode mailing list