deactivated custom fold, curly brackets folds and custom folds need a distinct type

This commit is contained in:
Basile Burg 2014-11-27 15:20:01 +01:00
parent fc98121147
commit 3996b4d11d
1 changed files with 10 additions and 12 deletions

View File

@ -474,18 +474,16 @@ begin
if readDelim(reader, fTokStop, '/') then
fTokKind := tkDDocs;
readLine(reader, fTokStop);
if fTokStop - fTokStart > 4 then
begin
Dec(reader,4);
Dec(fTokStop,4);
if reader = '---+'#10 then
StartCodeFoldBlock(nil)
else if reader = '----'#10 then
EndCodeFoldBlock();
readLine(reader, fTokStop);
end;
//if fTokStop - fTokStart > 4 then
//begin
// Dec(reader,4);
// Dec(fTokStop,4);
// if reader = '---+'#10 then
// StartCodeFoldBlock(nil)
// else if reader = '----'#10 then
// EndCodeFoldBlock();
// readLine(reader, fTokStop);
//end;
exit;
end else readerReset;