Fix folding in user-defined languages for non-windows line endings
Close #3372, fix #2873
This commit is contained in:
parent
053823e8ca
commit
dd401f1379
@ -2081,6 +2081,8 @@ static void ColouriseUserDoc(Sci_PositionU startPos, Sci_Position length, int in
|
||||
// no closing sequence, start over from default
|
||||
sc.SetState(SCE_USER_STYLE_IDENTIFIER);
|
||||
dontMove = true;
|
||||
if (sc.atLineEnd)
|
||||
checkEOL = EOL_SKIP_CHECK;
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -2125,7 +2127,7 @@ static void ColouriseUserDoc(Sci_PositionU startPos, Sci_Position length, int in
|
||||
sc.SetState(SCE_USER_STYLE_IDENTIFIER);
|
||||
dontMove = true;
|
||||
if (sc.atLineEnd)
|
||||
checkEOL = true;
|
||||
checkEOL = EOL_SKIP_CHECK;
|
||||
|
||||
levelNext--;
|
||||
if (levelMinCurrent > levelNext)
|
||||
@ -2150,7 +2152,7 @@ static void ColouriseUserDoc(Sci_PositionU startPos, Sci_Position length, int in
|
||||
// no closing sequence, start over from default
|
||||
sc.SetState(SCE_USER_STYLE_IDENTIFIER);
|
||||
if (sc.atLineEnd)
|
||||
checkEOL = true;
|
||||
checkEOL = EOL_SKIP_CHECK;
|
||||
|
||||
dontMove = true;
|
||||
levelNext--;
|
||||
|
Loading…
Reference in New Issue
Block a user