mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-31 09:21:35 +02:00
SynEdit: PasHighLighter, do not change FRange when processing comments
This commit is contained in:
parent
e10c541331
commit
434454b4ed
@ -6190,7 +6190,10 @@ var
|
||||
begin
|
||||
Exclude(fRange, rsSkipAllPasBlocks);
|
||||
BlockType := TopPascalCodeFoldBlockType;
|
||||
fRange := fRange - [rsAfterEqual, rsAfterColon];
|
||||
if not (BlockType in [cfbtAnsiComment, cfbtBorCommand, cfbtSlashComment, cfbtNestedComment,
|
||||
cfbtIfDef, cfbtRegion]) // cfbtAnonymousProcedure
|
||||
then
|
||||
fRange := fRange - [rsAfterEqual, rsAfterColon];
|
||||
DecreaseLevel := TopCodeFoldBlockType < CountPascalCodeFoldBlockOffset;
|
||||
// TODO: let inherited call CollectNodeInfo
|
||||
if IsCollectingNodeInfo then begin // exclude subblocks, because they do not increase the foldlevel yet
|
||||
|
Loading…
Reference in New Issue
Block a user