mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-27 22:20:26 +02:00
synedit: support folding for dispinterfaces
git-svn-id: trunk@23540 -
This commit is contained in:
parent
90d11eb2a2
commit
1bc6b10b9e
@ -1721,7 +1721,17 @@ end;
|
||||
|
||||
function TSynPasSyn.Func129: TtkTokenKind;
|
||||
begin
|
||||
if KeyComp('Dispinterface') then Result := tkKey else Result := tkIdentifier;
|
||||
if KeyComp('Dispinterface') then
|
||||
begin
|
||||
Result := tkKey;
|
||||
if (rsAfterEqual in fRange) and (PasCodeFoldRange.BracketNestLevel = 0) then
|
||||
begin
|
||||
fRange := fRange + [rsAtClass];
|
||||
StartPascalCodeFoldBlock(cfbtClass);
|
||||
end;
|
||||
end
|
||||
else
|
||||
Result := tkIdentifier;
|
||||
end;
|
||||
|
||||
function TSynPasSyn.Func130: TtkTokenKind;
|
||||
|
Loading…
Reference in New Issue
Block a user