Fix UDL folding breaking with delimiters issue if UNIX EOL

This fixes a bug where UDL folding breaks if 1) the file uses
non-Windows line endings and 2) delimiters are defined.

Fix #350, fix #2873, fix #3372, fix #5499, close #7930
This commit is contained in:
sk-zk 2020-02-10 03:35:33 +01:00 committed by Don Ho
parent c7140f279b
commit 3a33c83762
1 changed files with 2 additions and 0 deletions

View File

@ -1710,6 +1710,8 @@ static void ColouriseUserDoc(Sci_PositionU startPos, Sci_Position length, int in
sc.Forward(iter->length());
if (sc.atLineStart)
checkEOL = EOL_FORCE_CHECK;
else if (sc.atLineEnd)
checkEOL = EOL_SKIP_CHECK;
// paint end of delimiter sequence
sc.SetState(newState);