ada-mode-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ada mode 6.2.1: comment in record representation clause not correctl


From: Stephen Leake
Subject: Re: Ada mode 6.2.1: comment in record representation clause not correctly indented
Date: Thu, 05 Dec 2019 16:44:38 -0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (windows-nt)

SCHOEPFLIN Markus <address@hidden> writes:

> The documentation of Ada Indent Comment Gnat (which is off in my case) states 
> that "[...] Otherwise, they [the comments] are indented as a with previous 
> comments or code."
>
> In the following code snippet, the line marked with (4) is not correctly 
> aligned with the previous line of code.
>
> ---%<---
> procedure TEST is
>
>    type FOO_T is record
>       -- (1)
>       N : INTEGER;
>       -- (2)
>    end record;
>
>    for FOO_T use record
>       -- (3)
>       N at 0 range 0 .. 31;
>    -- (4)
>    end record;

Yes, this is a bug in in ada.wy "record_representation_clause"
wisi-indent-action; that should mimic "record_definition" more closely.

I'll add a test.

-- 
-- Stephe



reply via email to

[Prev in Thread] Current Thread [Next in Thread]