mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 17:39:20 +02:00
SynEdit: Folding, fix last check-in for "foo = class of bar;"
git-svn-id: trunk@18015 -
This commit is contained in:
parent
ee56753484
commit
57b43172d7
@ -730,7 +730,15 @@ end;
|
||||
|
||||
function TSynPasSyn.Func21: TtkTokenKind;
|
||||
begin
|
||||
if KeyComp('Of') then Result := tkKey else Result := tkIdentifier;
|
||||
if KeyComp('Of') then begin
|
||||
Result := tkKey;
|
||||
if (rsAfterClass in fRange) and (TopPascalCodeFoldBlockType = cfbtClass)
|
||||
then begin
|
||||
// Accidental start of block // End at next semicolon (usually same line)
|
||||
CodeFoldRange.Top.BlockType := Pointer(PtrInt(cfbtUses));
|
||||
end;
|
||||
end
|
||||
else Result := tkIdentifier;
|
||||
end;
|
||||
|
||||
function TSynPasSyn.Func23: TtkTokenKind;
|
||||
|
Loading…
Reference in New Issue
Block a user