Subject:
源代码高亮扩展好像不支持匿名函数的语法
[Print This Page]
Author:
wqyfavor
Time:
2008-12-28 21:52
Subject:
源代码高亮扩展好像不支持匿名函数的语法
在delphi2009里,如果一个过程里有匿名函数的话,语法划线就不正常了。
Author:
Passion
Time:
2008-12-28 23:22
感谢报告,楼主能否举例说明?
Author:
wqyfavor
Time:
2008-12-29 16:08
鼠标点在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 编辑
]
Author:
Passion
Time:
2008-12-29 17:50
感谢楼主提供的信息。匿名函数是Delphi2009增加的新语法,我们对其的新加的支持可能存在不完善的地方。下一每日构建版本中将有改进。
Author:
Passion
Time:
2008-12-29 21:56
474版本中对匿名函数的支持进行了部分优化,烦请楼主下载验证验证?
Author:
wqyfavor
Time:
2008-12-30 12:39
完美
Welcome to CnPack Forum (http://bbs.cnpack.org/)
Powered by Discuz! 5.0.0