Skip to content

Commit

Permalink
Fix Pascal asm block highlighting.
Browse files Browse the repository at this point in the history
  • Loading branch information
zufuliu committed Dec 16, 2024
1 parent b4dc348 commit 840401c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scintilla/lexers/LexPascal.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,6 @@ void ColourisePascalDoc(Sci_PositionU startPos, Sci_Position length, int initSty
}

for (; sc.More(); sc.Forward()) {
if (sc.atLineEnd) {
// Update the line state, so it can be seen by next line
styler.SetLineState(sc.currentLine, curLineState);
}

// Determine if the current state should terminate.
switch (sc.state) {
case SCE_PAS_NUMBER:
Expand Down Expand Up @@ -228,6 +223,11 @@ void ColourisePascalDoc(Sci_PositionU startPos, Sci_Position length, int initSty
sc.SetState(SCE_PAS_ASM);
}
}

if (sc.atLineEnd) {
// Update the line state, so it can be seen by next line
styler.SetLineState(sc.currentLine, curLineState);
}
}

if (sc.state == SCE_PAS_IDENTIFIER && IsIdentifierCharEx(sc.chPrev)) {
Expand Down

0 comments on commit 840401c

Please sign in to comment.