mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-22 16:39:15 +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
|
if KeyComp('Alias') then
|
||||||
Result := tkKey
|
Result := tkKey
|
||||||
else
|
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
|
Result := tkKey
|
||||||
else
|
else
|
||||||
Result := tkIdentifier;
|
Result := tkIdentifier;
|
||||||
|
Loading…
Reference in New Issue
Block a user