Beautifier issue with Comments inside a loop block

jking

Member²
Whenever I have a comment inside a loop block and I run the beautifier, the comment gets indented each time.

For example, if I have the below code:

Code:
begin
  for c in (select *
              from dual)
  loop
  /*
    this comment gets indented every time I execute the beautifier
  */
  -- this type of comment is not affected
  end loop;
end;

And I run the beautifier 10 times, the code looks like this:

Code:
begin
  for c in (select *
              from dual)
  loop
  /*
                         this comment gets indented every time I execute the beautifier
                      */
  -- this type of comment is not affected
  end loop;
end;

The comment within the /*...*/ gets indented every time. The comment using the "--" is not affected.

This has been happening since at least ver 7 and it is still happening with ver 10.0.4.

Please fix this. It is driving me crazy.
Let me know if you need me to send the Rules file.

Thanks.

 
Back
Top