mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-11 09:28:07 +02:00
SynEdit: Pas-Highlighter, deprecated after class
git-svn-id: trunk@29140 -
This commit is contained in:
parent
4f21afddf1
commit
d9b3de392f
@ -1005,6 +1005,9 @@ begin
|
||||
else
|
||||
if TopPascalCodeFoldBlockType = cfbtRecord then
|
||||
EndPascalCodeFoldBlock;
|
||||
// After type declaration, allow "deprecated"?
|
||||
if TopPascalCodeFoldBlockType in [cfbtVarType, cfbtLocalVarType] then
|
||||
fRange := fRange + [rsVarTypeInSpecification];
|
||||
end;
|
||||
{$ENDIF}
|
||||
end else begin
|
||||
|
@ -716,6 +716,19 @@ procedure TTestHighlighterPas.TestContextForDeprecated;
|
||||
tkSpace, tkIdentifier, tkSpace, tkKey {the one and only}, tkSymbol]);
|
||||
|
||||
|
||||
|
||||
// after class declaration
|
||||
SetLines
|
||||
([ 'Unit A; interface',
|
||||
'type',
|
||||
'TFoo=class',
|
||||
'foo: Integer;',
|
||||
'end '+s+';',
|
||||
''
|
||||
]);
|
||||
CheckTokensForLine('after class declaration', 4,
|
||||
[tkKey, tkSpace, tkKey, tkSymbol]);
|
||||
|
||||
PopBaseName;
|
||||
end;
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user