matatua / cnpack

Automatically exported from code.google.com/p/cnpack
0 stars 0 forks source link

高亮当前标识符功能在遇到普通类声明时会失效 #52

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
对于以下代码:

  TForm1 = class(TForm)
  private
    { Private declarations }
  public
    { Public declarations }
  end;

光标在TForm上时,不会高亮TForm及文中的其他TForm。
经查是使用Lex在Parse时,得到的TForm这个Token的CharIndex莫名其��
�变成了负值,导致位置计算错误从而未将此判断成当前标识�
��。

Original issue reported on code.google.com by liuxiaos...@gmail.com on 8 Aug 2013 at 6:42

GoogleCodeExporter commented 9 years ago

Original comment by liuxiaos...@gmail.com on 8 Aug 2013 at 7:21

GoogleCodeExporter commented 9 years ago

Original comment by liuxiaos...@gmail.com on 26 Sep 2014 at 5:35