mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 05:19:31 +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;
|
||||
|
||||
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
|
||||
if FIsInNextToEOL and not FCatchNodeInfo then
|
||||
exit;
|
||||
// Scanning for display / Look ahead
|
||||
if KeyComp('strict') then begin
|
||||
if KeyComp('strict') then
|
||||
begin
|
||||
if (TopPascalCodeFoldBlockType in [cfbtClass, cfbtClassSection]) then
|
||||
if ScanForClassSection then
|
||||
Result := tkKey;
|
||||
|
Loading…
Reference in New Issue
Block a user