mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-19 03:39:35 +02:00
SynEdit: Highlighter, limit default as key, only in classes
git-svn-id: trunk@20605 -
This commit is contained in:
parent
ef037bb0b6
commit
d4702f28d9
@ -1232,9 +1232,15 @@ end;
|
||||
|
||||
function TSynPasSyn.Func69: TtkTokenKind;
|
||||
begin
|
||||
if KeyComp('Default') then Result := tkKey else
|
||||
if KeyComp('Dynamic') then Result := tkKey else
|
||||
if KeyComp('Message') then Result := tkKey else Result := tkIdentifier;
|
||||
if KeyComp('Default') then begin
|
||||
if (TopPascalCodeFoldBlockType in [cfbtClass, cfbtClassSection]) then
|
||||
Result := tkKey
|
||||
else
|
||||
Result := tkIdentifier;
|
||||
end else
|
||||
if KeyComp('Dynamic') then Result := tkKey
|
||||
else
|
||||
if KeyComp('Message') then Result := tkKey else Result := tkIdentifier;
|
||||
end;
|
||||
|
||||
function TSynPasSyn.Func71: TtkTokenKind;
|
||||
|
Loading…
Reference in New Issue
Block a user