mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-13 13:39:18 +02:00
SynEdit: fold "resourcestring" (together with type, var, const) issue #0018634
git-svn-id: trunk@30120 -
This commit is contained in:
parent
2161f792f8
commit
18ed0d7537
@ -2136,8 +2136,14 @@ end;
|
|||||||
|
|
||||||
function TSynPasSyn.Func191: TtkTokenKind;
|
function TSynPasSyn.Func191: TtkTokenKind;
|
||||||
begin
|
begin
|
||||||
if KeyComp('Resourcestring') then Result := tkKey else
|
if KeyComp('Resourcestring') then begin
|
||||||
if KeyComp('Stringresource') then Result := tkKey else Result := tkIdentifier;
|
Result := tkKey;
|
||||||
|
if TopPascalCodeFoldBlockType = cfbtVarType then
|
||||||
|
EndPascalCodeFoldBlockLastLine;
|
||||||
|
StartPascalCodeFoldBlock(cfbtVarType);
|
||||||
|
end
|
||||||
|
else if KeyComp('Stringresource') then
|
||||||
|
Result := tkKey else Result := tkIdentifier;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TSynPasSyn.AltFunc: TtkTokenKind;
|
function TSynPasSyn.AltFunc: TtkTokenKind;
|
||||||
|
Loading…
Reference in New Issue
Block a user