CodeTools: Support case-insensitive {$Align X} etc. directives. Issue #39339, patch by PeaZomboss.

This commit is contained in:
Juha 2021-10-01 16:31:07 +03:00
parent 8eeeef47c6
commit 555a0bb5fc

View File

@ -1809,7 +1809,7 @@ begin
inc(SrcPos);
DirLen:=SrcPos-DirStart;
if DirLen>255 then DirLen:=255;
FDirectiveName:=copy(Src,DirStart,DirLen);
FDirectiveName:=UpperCase(Copy(Src,DirStart,DirLen));
DoDirective(DirStart,DirLen);
SrcPos:=CommentEndPos;
end;
@ -3594,7 +3594,7 @@ begin
inc(SrcPos);
DirLen:=SrcPos-DirStart;
if DirLen>255 then DirLen:=255;
FDirectiveName:=copy(Src,DirStart,DirLen);
FDirectiveName:=UpperCase(Copy(Src,DirStart,DirLen));
Result:=DoDirective(DirStart,DirLen);
end else
Result:=true;