codetools: TStandardCodeTool.GetPasDocComments stop at directives

git-svn-id: trunk@22575 -
This commit is contained in:
mattias 2009-11-13 20:42:15 +00:00
parent 6a9a708b28
commit ce415836a7

View File

@ -4347,7 +4347,11 @@ function TStandardCodeTool.GetPasDocComments(const StartPos: TCodeXYPosition;
p:=FindLineEndOrCodeInFrontOfPosition(StartPos,true); p:=FindLineEndOrCodeInFrontOfPosition(StartPos,true);
while p<EndPos do begin while p<EndPos do begin
p:=FindNextComment(Src,p,EndPos); p:=FindNextComment(Src,p,EndPos);
if p>=EndPos then break; if (p>=EndPos)
or ((Src[p]='{') and (Src[p+1]='$'))
or ((Src[p]='(') and (Src[p+1]='*') and (Src[p+2]='$'))
then
break;
//debugln(['TStandardCodeTool.GetPasDocComments Comment="',copy(Src,p,FindCommentEnd(Src,p,Scanner.NestedComments)-p),'"']); //debugln(['TStandardCodeTool.GetPasDocComments Comment="',copy(Src,p,FindCommentEnd(Src,p,Scanner.NestedComments)-p),'"']);
if (p<StartPos) then begin if (p<StartPos) then begin
// comment in front of node // comment in front of node