SynEdit, pas hl: fixed message modifier context. Issue #0017577

git-svn-id: trunk@28221 -
This commit is contained in:
martin 2010-11-14 19:48:19 +00:00
parent 70dee9c7bf
commit 3aa0ac6c03

View File

@ -1353,8 +1353,8 @@ begin
if KeyComp('Dynamic') then
Result := tkKey
else
if KeyComp('Message') and (not(rsInProcHeader in fRange)) and
(TopPascalCodeFoldBlockType in ProcModifierAllowed) and
if KeyComp('Message') and (fRange * [rsAfterClassMembers, rsInProcHeader] = [rsAfterClassMembers]) and
(TopPascalCodeFoldBlockType in [cfbtClass, cfbtClassSection]) and
(PasCodeFoldRange.BracketNestLevel = 0)
then
Result := tkKey