IDE : Source -> Jedi Code Format >>> Fails on nested Curly comments <<<
Original Reporter info from Mantis: BrunoK
-
Reporter name:
Original Reporter info from Mantis: BrunoK
- Reporter name:
Description:
When nested { { } } comments appear, a compilable unit fails to be JEDI reformatted.
Steps to reproduce:
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs;
type
TForm1 = class(TForm)
private
{ private declarations { This is a nested comment
}}
public
{ public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.lfm}
end.
Additional information:
Problem in lazarus\components\jcf2\Parse\BuildTokenList.pas
TryCurlyComment.
Should count open/close curly comments.
Mantis conversion info:
- Mantis ID: 26610
- OS: MS-Win
- OS Build: XP Pro SP3
- Build: Laz 1.3
- Platform: Pentium
- Fixed in revision: r46061 (#28163c2c)