mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 20:59:08 +02:00
Synedit, reduced amount of ranges used by highlighter (fixed for last rev)
git-svn-id: trunk@18444 -
This commit is contained in:
parent
f4ca0b1d9f
commit
799d3a721f
@ -881,7 +881,7 @@ function TSynPasSyn.Func37: TtkTokenKind;
|
|||||||
begin
|
begin
|
||||||
if KeyComp('Begin') then begin
|
if KeyComp('Begin') then begin
|
||||||
// if we are in an include file, we may not know the state
|
// if we are in an include file, we may not know the state
|
||||||
if (fRange * [rsImplementation, rsInterface] = []) then begin
|
if (fRange * [rsImplementation, rsInterface] = []) then
|
||||||
Include(fRange, rsImplementation);
|
Include(fRange, rsImplementation);
|
||||||
TSynPasSynRange(CodeFoldRange).BracketNestLevel := 0; // Reset in case of partial code
|
TSynPasSynRange(CodeFoldRange).BracketNestLevel := 0; // Reset in case of partial code
|
||||||
if TopPascalCodeFoldBlockType=cfbtVarType then EndCodeFoldBlockLastLine;
|
if TopPascalCodeFoldBlockType=cfbtVarType then EndCodeFoldBlockLastLine;
|
||||||
|
Loading…
Reference in New Issue
Block a user