mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 14:38:01 +02:00
SynEdit: Pas-Highlighter, improved final keyword
git-svn-id: trunk@29141 -
This commit is contained in:
parent
d9b3de392f
commit
1cb4963ee6
@ -1151,7 +1151,11 @@ begin
|
||||
if KeyComp('Alias') then
|
||||
Result := tkKey
|
||||
else
|
||||
if KeyComp('Final') and (TopPascalCodeFoldBlockType in [cfbtClassSection]) then
|
||||
if KeyComp('Final') and
|
||||
(TopPascalCodeFoldBlockType in [cfbtClass, cfbtClassSection]) and
|
||||
(fRange * [rsAfterClassMembers, rsInProcHeader, rsProperty] = [rsAfterClassMembers]) and
|
||||
(PasCodeFoldRange.BracketNestLevel = 0)
|
||||
then
|
||||
Result := tkKey
|
||||
else
|
||||
Result := tkIdentifier;
|
||||
|
Loading…
Reference in New Issue
Block a user