Jedi Code Format: Fix compilation with FPC 3.0.4. Issue #37734, patch from BrunoK.

git-svn-id: trunk@63881 -
This commit is contained in:
juha 2020-09-11 15:27:25 +00:00
parent 5b2352d8a1
commit f7701ffbe4

View File

@ -323,9 +323,10 @@ begin
begin
lPos:=0;
lLen:=length(pcToken.SourceCode);
if StartsText('{$include',pcToken.SourceCode)=true then
if AnsiStartsText('{$I', pcToken.SourceCode) then
if AnsiStartsText('{$INCLUDE', pcToken.SourceCode) then
lPos := 10
else if StartsStr('{$I',pcToken.SourceCode)=true then
else
lPos := 4;
if (lPos>0) and (lPos<lLen) and (CharIsWhiteSpace(pcToken.SourceCode[lPos])) then
begin