-- followed by two spaces.
The only exception to this rule (i.e. one space is tolerated) is when the
comment ends with a single space followed by --.
It is also acceptable to have only one space between -- and the start
of the comment when the comment is at the end of a line,
after some Ada code.
-- (unlike the
normal rule, which is to use entirely blank lines for separating
comment paragraphs). The comment starts at same level of indentation
as code it is commenting.
z : Integer; -- Integer value for storing value of z -- -- The previous line was a blank line.
???.
begin, else, loop ):
begin -- Comment for the next statement A := 5; -- Comment for the B statement B := 6; end;
My_Identifier := 5; -- First comment Other_Id := 6; -- Second comment