SynEdit: Pas-Highlighter, improved final keyword

git-svn-id: trunk@29141 -
This commit is contained in:
martin 2011-01-20 15:18:02 +00:00
parent d9b3de392f
commit 1cb4963ee6

View File

@ -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;