IDE: codehelp: removing pasdoc

git-svn-id: trunk@16844 -
This commit is contained in:
mattias 2008-10-02 09:29:21 +00:00
parent 626815db77
commit 36f21372de
2 changed files with 9 additions and 3 deletions

View File

@ -61,7 +61,8 @@ function CleanCodeFromComments(const DirtyCode: string;
NestedComments: boolean): string;
function ExtractCommentContent(const ASource: string; CommentStart: integer;
NestedComments: boolean;
TrimStart: boolean = false; TrimEnd: boolean = false): string;
TrimStart: boolean = false; TrimEnd: boolean = false;
TrimPasDoc: boolean = false): string;
function FindMainUnitHint(const ASource: string; out Filename: string): boolean;
// indent
@ -2787,7 +2788,8 @@ begin
end;
function ExtractCommentContent(const ASource: string; CommentStart: integer;
NestedComments: boolean; TrimStart: boolean; TrimEnd: boolean): string;
NestedComments: boolean; TrimStart: boolean; TrimEnd: boolean;
TrimPasDoc: boolean): string;
var
CommentEnd: LongInt;
StartPos: LongInt;
@ -2820,6 +2822,10 @@ begin
dec(EndPos);
end;
end;
if TrimPasDoc then begin
if (StartPos<EndPos) and (ASource[StartPos]='<') then
inc(StartPos);
end;
if TrimStart then begin
while (StartPos<EndPos) and (ASource[StartPos] in [' ',#9,#10,#13]) do
inc(StartPos);

View File

@ -1847,7 +1847,7 @@ begin
then
continue;
CommentStr:=ExtractCommentContent(CommentCode.Source,CommentStart,
NestedComments,true,true);
NestedComments,true,true,true);
if CommentStr<>'' then begin
if not ItemAdded then begin
AddText(Item.ElementName+LineEnding