mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-31 18:20:42 +02:00
SynEdit, Highlighter: "type x=interface" was not recognized as fold-able structure / "default" keyword for properties in such structures where not highlighted; issue #14153
git-svn-id: trunk@20873 -
This commit is contained in:
parent
b5d019c838
commit
42e7f62664
@ -1314,6 +1314,12 @@ begin
|
||||
if rsProperty in fRange then Result := tkKey else Result := tkIdentifier;
|
||||
end else
|
||||
if KeyComp('Interface') then begin
|
||||
if (rsAfterEqual in fRange) and (PasCodeFoldRange.BracketNestLevel = 0)
|
||||
then begin
|
||||
fRange := fRange + [rsAtClass];
|
||||
StartPascalCodeFoldBlock(cfbtClass);
|
||||
end
|
||||
else
|
||||
if not(rsAfterEqual in fRange) and
|
||||
(fRange * [rsInterface, rsImplementation] = []) then
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user