mirror of https://gitlab.com/basile.b/dexed.git
fix, ddoc fold as option, close according to options, not both
This commit is contained in:
parent
a955a0557d
commit
6d7193877c
|
@ -553,9 +553,11 @@ begin
|
||||||
else fTokKind := tkCommt;
|
else fTokKind := tkCommt;
|
||||||
if readUntil(reader, fTokStop, '*/') then
|
if readUntil(reader, fTokStop, '*/') then
|
||||||
begin
|
begin
|
||||||
fCurrRange.rangeKinds -= [rkBlockDoc1, rkBlockCom1];
|
if (fkComments1 in fFoldKinds) and (fTokKind = tkCommt) then
|
||||||
if (fkComments1 in fFoldKinds) or (fkDDoc in fFoldKinds) then
|
EndCodeFoldBlock()
|
||||||
|
else if (fkDDoc in fFoldKinds) and (fTokKind = tkDDocs) then
|
||||||
EndCodeFoldBlock();
|
EndCodeFoldBlock();
|
||||||
|
fCurrRange.rangeKinds -= [rkBlockDoc1, rkBlockCom1];
|
||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
readLine(reader, fTokStop);
|
readLine(reader, fTokStop);
|
||||||
|
@ -595,9 +597,11 @@ begin
|
||||||
dec(fCurrRange.nestedCommentsCount);
|
dec(fCurrRange.nestedCommentsCount);
|
||||||
if fCurrRange.nestedCommentsCount <> 0 then
|
if fCurrRange.nestedCommentsCount <> 0 then
|
||||||
exit;
|
exit;
|
||||||
fCurrRange.rangeKinds -= [rkBlockDoc2, rkBlockCom2];
|
if (fkComments2 in fFoldKinds) and (fTokKind = tkCommt) then
|
||||||
if (fkComments2 in fFoldKinds) or (fkDDoc in fFoldKinds) then
|
EndCodeFoldBlock()
|
||||||
|
else if (fkDDoc in fFoldKinds) and (fTokKind = tkDDocs) then
|
||||||
EndCodeFoldBlock();
|
EndCodeFoldBlock();
|
||||||
|
fCurrRange.rangeKinds -= [rkBlockDoc2, rkBlockCom2];
|
||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
readLine(reader, fTokStop);
|
readLine(reader, fTokStop);
|
||||||
|
|
Loading…
Reference in New Issue