SynEdit: fold "resourcestring" (together with type, var, const) issue #0018634

git-svn-id: trunk@30120 -
This commit is contained in:
martin 2011-04-01 20:29:18 +00:00
parent 2161f792f8
commit 18ed0d7537

View File

@ -2136,8 +2136,14 @@ end;
function TSynPasSyn.Func191: TtkTokenKind;
begin
if KeyComp('Resourcestring') then Result := tkKey else
if KeyComp('Stringresource') then Result := tkKey else Result := tkIdentifier;
if KeyComp('Resourcestring') then begin
Result := tkKey;
if TopPascalCodeFoldBlockType = cfbtVarType then
EndPascalCodeFoldBlockLastLine;
StartPascalCodeFoldBlock(cfbtVarType);
end
else if KeyComp('Stringresource') then
Result := tkKey else Result := tkIdentifier;
end;
function TSynPasSyn.AltFunc: TtkTokenKind;