mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-27 20:53:57 +02:00
codetools: fixed skipping missing endif
git-svn-id: trunk@20200 -
This commit is contained in:
parent
dc7e254692
commit
2363d05000
@ -3184,13 +3184,19 @@ begin
|
||||
inc(SrcPos);
|
||||
end else begin
|
||||
inc(SrcPos);
|
||||
if (SrcPos>SrcLen) and not ReturnFromIncludeFile then
|
||||
if (SrcPos>SrcLen) and not ReturnFromIncludeFile then begin
|
||||
CommentStartPos:=0;
|
||||
break;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
LastCleanSrcPos:=CommentStartPos-1;
|
||||
AddLink(CleanedLen+1,CommentStartPos,Code);
|
||||
if CommentStartPos>0 then begin
|
||||
LastCleanSrcPos:=CommentStartPos-1;
|
||||
AddLink(CleanedLen+1,CommentStartPos,Code);
|
||||
end else begin
|
||||
LastCleanSrcPos:=SrcLen+1;
|
||||
end;
|
||||
{$IFDEF ShowUpdateCleanedSrc}
|
||||
DebugLn('TLinkScanner.SkipTillEndifElse B Continuing after: ',
|
||||
' Src=',DbgStr(copy(Src,CommentStartPos-15,15))+'|'+DbgStr(copy(Src,CommentStartPos,15)));
|
||||
|
Loading…
Reference in New Issue
Block a user