Simon Wright <[email protected]> writes: >> On 9 Jun 2016, at 23:27, Stephen Leake <[email protected]> >> wrote: > > [patch clears the error OK, thanks for illumination] > >> That puts the comment in a place that GNAT will probably complain about: >> >> type A is new B with >> -- a comment; TAB on this line results in error >> record > > Yes, GNAT does. > >> But (setq ada-indent-comment-gnat t) fixes that: >> >> type A is new B with >> -- a comment; TAB on this line results in error >> record > > Here it made no difference??
Hmm; it worked for me. It's buffer-local; did you set it in the correct buffer? > I wondered whether we could use ada-indent or 0 instead of > ada-indent-broken. > > > But then I noticed that GNAT complains about this as well: > > type A3 is > -- a comment. > record > C : Integer; > end record; I would prefer to align the comment with 'record' in these cases; that would require looking ahead to see if 'record' is there. -- -- Stephe _______________________________________________ Emacs-ada-mode mailing list [email protected] http://host114.hostmonster.com/mailman/listinfo/emacs-ada-mode_stephe-leake.org
