mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 17:59:16 +02:00
codetools: TStandardCodeTool.GetPasDocComments stop at directives
git-svn-id: trunk@22575 -
This commit is contained in:
parent
6a9a708b28
commit
ce415836a7
@ -4347,7 +4347,11 @@ function TStandardCodeTool.GetPasDocComments(const StartPos: TCodeXYPosition;
|
||||
p:=FindLineEndOrCodeInFrontOfPosition(StartPos,true);
|
||||
while p<EndPos do begin
|
||||
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),'"']);
|
||||
if (p<StartPos) then begin
|
||||
// comment in front of node
|
||||
|
Loading…
Reference in New Issue
Block a user