Menu

#1 Comment capture incomplete

open
nobody
None
5
2002-11-04
2002-11-04
No

In mwSimplePasPar.pas, the TmwSimplePasPar methods of
SkipAnsiComment, SkipBorComment, and SkipSlashesComment
never fire. The ancestor TmwPasLex eats all the info
for SkipBorComment calls in the BorProc method.

Since all of your parsers descend from these base
clases I thought it was relevant to mention.

One side effect is that when mapping where a procedure
begins and ends, the comment block is incorrectly
included. Below, the comment block for SomeMethodB will
be included in the procedure block of SomeMethodA.

{ Some comment on procedure }
procedure TSomeObject.SomeMethodA(...);
begin
[...]
end;

{ Some other comment on procedure }
procedure TSomeObject.SomeMethodB(...);
begin
[...]
end;

I don't know how directly this would affect your
project but I thought it was worth mentioning. Please
let me know if this is being reported to the wrong place.

-Mark E.

Discussion


Log in to post a comment.