codetools: get pasdoc comment: ignore comments starting with % or $

git-svn-id: trunk@46503 -
This commit is contained in:
mattias 2014-10-09 21:11:58 +00:00
parent cc8d68aac1
commit 4679dc1e09

View File

@ -3402,7 +3402,7 @@ function TPascalReaderTool.GetPasDocComments(Node: TCodeTreeNode;
pp:=@Src[p];
if ((pp^='/') and (pp[1]='/') and (pp[2] in ['$','%']))
or ((pp^='{') and (pp[1] in ['$','%']))
or ((pp^='(') and (pp[1]='*') and (pp[2]='$'))
or ((pp^='(') and (pp[1]='*') and (pp[2] in ['$','%']))
then
break;
//debugln(['TStandardCodeTool.GetPasDocComments Comment="',copy(Src,p,FindCommentEnd(Src,p,Scanner.NestedComments)-p),'"']);