Skip to content

Commit

Permalink
Minor update Batch :label line highlighting.
Browse files Browse the repository at this point in the history
  • Loading branch information
zufuliu committed Mar 12, 2023
1 parent 0edf676 commit f5febd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scintilla/lexers/LexBatch.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ void ColouriseBatchDoc(Sci_PositionU startPos, Sci_Position lengthDoc, int initS
// https://ss64.com/nt/goto.html
if (sc.atLineStart) {
sc.SetState(SCE_BAT_DEFAULT);
} else if (IsGraphic(sc.ch) && !IsLabelChar(sc.ch)) {
} else if (IsSpaceOrTab(sc.ch) && sc.GetLineNextChar() != '\0') {
if (outerStyle == SCE_BAT_NOT_BATCH) {
sc.ChangeState(SCE_BAT_NOT_BATCH);
labelLine = false;
Expand Down
2 changes: 1 addition & 1 deletion scintilla/lexers/LexJava.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ inline bool MatchSealed(LexAccessor &styler, Sci_PositionU pos, Sci_PositionU en
styler.GetRange(pos, endPos, s, sizeof(s));
if (StrStartsWith(s, "ealed")) {
const uint8_t ch = s[CStrLen("ealed")];
return ch == '\0' || isspacechar(ch) || ch == '/'; // space or comment
return ch <= ' ' || ch == '/'; // space or comment
}
return false;
}
Expand Down

0 comments on commit f5febd6

Please sign in to comment.