mirror of
				https://gitlab.com/freepascal.org/lazarus/lazarus.git
				synced 2025-11-04 02:19:29 +01:00 
			
		
		
		
	CodeTools: Support case-insensitive {$Align X} etc. directives. Issue #39339, patch by PeaZomboss.
This commit is contained in:
		
							parent
							
								
									8eeeef47c6
								
							
						
					
					
						commit
						555a0bb5fc
					
				@ -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;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user