CnPack Forum


 
Subject: 源代码高亮扩展好像不支持匿名函数的语法
wqyfavor
灌水科科长
Rank: 3Rank: 3



UID 40865
Digest Posts 0
Credits 130
Posts 45
点点分 130
Reading Access 10
Registered 2008-9-2
Status Offline
Post at 2008-12-28 21:52  Profile | Blog | P.M. 
源代码高亮扩展好像不支持匿名函数的语法

在delphi2009里,如果一个过程里有匿名函数的话,语法划线就不正常了。
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2008-12-28 23:22  Profile | Blog | P.M. 
感谢报告,楼主能否举例说明?
Top
wqyfavor
灌水科科长
Rank: 3Rank: 3



UID 40865
Digest Posts 0
Credits 130
Posts 45
点点分 130
Reading Access 10
Registered 2008-9-2
Status Offline
Post at 2008-12-29 16:08  Profile | Blog | P.M. 
鼠标点在FormCreate过程里就不会画线了,而且Delphi2009的自动begin end匹配在这里也有问题,比如输入完Proc := procedure按回车它会出现一个"end;"

unit Unit2;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs;

type
  TForm2 = class(TForm)
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

  TProc = reference to procedure;
var
  Form2: TForm2;

implementation

{$R *.dfm}

procedure TForm2.FormCreate(Sender: TObject);
var
   Proc: TProc;
begin
   Proc := procedure
   begin

   end;
end;

end.

[ 本帖最后由 wqyfavor 于 2008-12-29 16:10 编辑 ]
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2008-12-29 17:50  Profile | Blog | P.M. 
感谢楼主提供的信息。匿名函数是Delphi2009增加的新语法,我们对其的新加的支持可能存在不完善的地方。下一每日构建版本中将有改进。
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2008-12-29 21:56  Profile | Blog | P.M. 
474版本中对匿名函数的支持进行了部分优化,烦请楼主下载验证验证?
Top
wqyfavor
灌水科科长
Rank: 3Rank: 3



UID 40865
Digest Posts 0
Credits 130
Posts 45
点点分 130
Reading Access 10
Registered 2008-9-2
Status Offline
Post at 2008-12-30 12:39  Profile | Blog | P.M. 
完美
Top
 




All times are GMT++8, the time now is 2024-11-23 10:09

    本论坛支付平台由支付宝提供
携手打造安全诚信的交易社区 Powered by Discuz! 5.0.0  © 2001-2006 Comsenz Inc.
Processed in 0.009072 second(s), 7 queries , Gzip enabled

Clear Cookies - Contact Us - CnPack Website - Archiver - WAP