mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-22 19:39:30 +02:00
SynEdit: Pas Highlighter, improved "stored" for property
This commit is contained in:
parent
b8a9088638
commit
31d30d3fcf
@ -1751,9 +1751,12 @@ function TSynPasSyn.Func81: TtkTokenKind;
|
|||||||
var
|
var
|
||||||
tbf: TPascalCodeFoldBlockType;
|
tbf: TPascalCodeFoldBlockType;
|
||||||
begin
|
begin
|
||||||
if KeyComp('Stored') then
|
if (fRange * [rsProperty, rsAtPropertyOrReadWrite, rsAfterEqualOrColon] = [rsProperty]) and
|
||||||
begin
|
(PasCodeFoldRange.BracketNestLevel = 0) and
|
||||||
if rsProperty in fRange then Result := tkKey else Result := tkIdentifier;
|
KeyComp('Stored')
|
||||||
|
then begin
|
||||||
|
Result := tkKey;
|
||||||
|
fRange := fRange + [rsAtPropertyOrReadWrite] - [rsVarTypeInSpecification];
|
||||||
end
|
end
|
||||||
else if KeyComp('Interface') then begin
|
else if KeyComp('Interface') then begin
|
||||||
if (rsAfterEqual in fRange) and (PasCodeFoldRange.BracketNestLevel = 0)
|
if (rsAfterEqual in fRange) and (PasCodeFoldRange.BracketNestLevel = 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user