mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 10:59:11 +02:00
synedit: support for cppclass
git-svn-id: trunk@22785 -
This commit is contained in:
parent
eba9f81e8c
commit
543add952b
@ -1485,12 +1485,23 @@ function TSynPasSyn.Func89: TtkTokenKind;
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
Result := tkIdentifier;
|
if KeyComp('CppClass') then
|
||||||
|
begin
|
||||||
|
Result := tkKey;
|
||||||
|
if (rsAfterEqual in fRange) and (PasCodeFoldRange.BracketNestLevel = 0) then
|
||||||
|
begin
|
||||||
|
fRange := fRange + [rsAtClass];
|
||||||
|
StartPascalCodeFoldBlock(cfbtClass);
|
||||||
|
end;
|
||||||
|
end
|
||||||
|
else
|
||||||
|
Result := tkIdentifier;
|
||||||
// Structural Scan / Quick
|
// Structural Scan / Quick
|
||||||
if FIsInNextToEOL and not FCatchNodeInfo then
|
if FIsInNextToEOL and not FCatchNodeInfo then
|
||||||
exit;
|
exit;
|
||||||
// Scanning for display / Look ahead
|
// Scanning for display / Look ahead
|
||||||
if KeyComp('strict') then begin
|
if KeyComp('strict') then
|
||||||
|
begin
|
||||||
if (TopPascalCodeFoldBlockType in [cfbtClass, cfbtClassSection]) then
|
if (TopPascalCodeFoldBlockType in [cfbtClass, cfbtClassSection]) then
|
||||||
if ScanForClassSection then
|
if ScanForClassSection then
|
||||||
Result := tkKey;
|
Result := tkKey;
|
||||||
|
Loading…
Reference in New Issue
Block a user