mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-31 04:12:34 +02:00
SynEdit: fixed pas HL for uses block. Issue #0032976
git-svn-id: trunk@57058 -
This commit is contained in:
parent
91b5e9ace2
commit
742189d0ee
@ -3011,22 +3011,23 @@ procedure TSynPasSyn.SemicolonProc;
|
||||
var
|
||||
tfb: TPascalCodeFoldBlockType;
|
||||
begin
|
||||
Inc(Run);
|
||||
fTokenID := tkSymbol;
|
||||
tfb := TopPascalCodeFoldBlockType;
|
||||
|
||||
fStringLen := 1;
|
||||
if tfb = cfbtUses then
|
||||
EndPascalCodeFoldBlock;
|
||||
|
||||
if (tfb = cfbtClass) and (rsAfterClass in fRange) then
|
||||
EndPascalCodeFoldBlock(True);
|
||||
|
||||
fStringLen:=0;
|
||||
while (tfb in [cfbtIfThen,cfbtIfElse,cfbtForDo,cfbtWhileDo,cfbtWithDo]) do begin
|
||||
EndPascalCodeFoldBlock(True);
|
||||
tfb := TopPascalCodeFoldBlockType;
|
||||
end;
|
||||
|
||||
Inc(Run);
|
||||
|
||||
if (tfb = cfbtCase) then
|
||||
fRange := fRange + [rsAtCaseLabel];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user