Skip to content

Commit

Permalink
Fix folding in user-defined languages for non-windows line endings
Browse files Browse the repository at this point in the history
  • Loading branch information
ssk97 authored and donho committed Aug 4, 2019
1 parent 3474062 commit 3199bbe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scintilla/lexers/LexUser.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down Expand Up @@ -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)
Expand All @@ -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--;
Expand Down

0 comments on commit 3199bbe

Please sign in to comment.