Skip to content

Commit

Permalink
#295 Remove variable that is not needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
zufuliu authored and nyamatongwe committed Dec 21, 2024
1 parent 870a8ca commit d0ef4d2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lexers/LexPascal.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,12 @@ static void ColourisePascalDoc(Sci_PositionU startPos, Sci_Position length, int
CharacterSet setHexNumber(CharacterSet::setDigits, "abcdefABCDEF");
CharacterSet setOperator(CharacterSet::setNone, "#$&'()*+,-./:;<=>@[]^{}");

Sci_Position curLine = styler.GetLine(startPos);
int curLineState = curLine > 0 ? styler.GetLineState(curLine - 1) : 0;
int curLineState = 0;

StyleContext sc(startPos, length, initStyle, styler);
if (sc.currentLine > 0) {
curLineState = styler.GetLineState(sc.currentLine - 1);
}

for (; sc.More(); sc.Forward()) {
// Determine if the current state should terminate.
Expand Down

0 comments on commit d0ef4d2

Please sign in to comment.