mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-06 19:58:13 +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
|
var
|
||||||
tfb: TPascalCodeFoldBlockType;
|
tfb: TPascalCodeFoldBlockType;
|
||||||
begin
|
begin
|
||||||
Inc(Run);
|
|
||||||
fTokenID := tkSymbol;
|
fTokenID := tkSymbol;
|
||||||
tfb := TopPascalCodeFoldBlockType;
|
tfb := TopPascalCodeFoldBlockType;
|
||||||
|
|
||||||
|
fStringLen := 1;
|
||||||
if tfb = cfbtUses then
|
if tfb = cfbtUses then
|
||||||
EndPascalCodeFoldBlock;
|
EndPascalCodeFoldBlock;
|
||||||
|
|
||||||
if (tfb = cfbtClass) and (rsAfterClass in fRange) then
|
if (tfb = cfbtClass) and (rsAfterClass in fRange) then
|
||||||
EndPascalCodeFoldBlock(True);
|
EndPascalCodeFoldBlock(True);
|
||||||
|
|
||||||
fStringLen:=0;
|
|
||||||
while (tfb in [cfbtIfThen,cfbtIfElse,cfbtForDo,cfbtWhileDo,cfbtWithDo]) do begin
|
while (tfb in [cfbtIfThen,cfbtIfElse,cfbtForDo,cfbtWhileDo,cfbtWithDo]) do begin
|
||||||
EndPascalCodeFoldBlock(True);
|
EndPascalCodeFoldBlock(True);
|
||||||
tfb := TopPascalCodeFoldBlockType;
|
tfb := TopPascalCodeFoldBlockType;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Inc(Run);
|
||||||
|
|
||||||
if (tfb = cfbtCase) then
|
if (tfb = cfbtCase) then
|
||||||
fRange := fRange + [rsAtCaseLabel];
|
fRange := fRange + [rsAtCaseLabel];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user