codetools: fixed parsing #3 comment

git-svn-id: trunk@39929 -
This commit is contained in:
mattias 2013-01-21 18:18:44 +00:00
parent 583ff30428
commit 154e3f3567

View File

@ -284,8 +284,9 @@ begin
// codetools skip comment // codetools skip comment
inc(CurCommentPos); inc(CurCommentPos);
while (CurCommentPos<CommentEnd) do begin while (CurCommentPos<CommentEnd) do begin
if (Src[CurCommentPos]=#3) and (CurCommentPos+1<CommentEnd) if (Src[CurCommentPos]=#3)
and (Src[CurCommentPos]='}') then begin and (CurCommentPos+1<CommentEnd) and (Src[CurCommentPos+1]='}')
then begin
inc(CurCommentPos,2); inc(CurCommentPos,2);
break; break;
end; end;