Skip to content

Commit

Permalink
#304 Fix single character argument to StyleContext::MatchIgnoreCase.
Browse files Browse the repository at this point in the history
  • Loading branch information
HoTschir authored and nyamatongwe committed Feb 7, 2025
1 parent 4f2ac48 commit 56dcfd3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lexlib/StyleContext.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ bool StyleContext::MatchIgnoreCase(const char *s) {
if (MakeLowerCase(ch) != static_cast<unsigned char>(*s))
return false;
s++;
if (!*s)
return true;
if (MakeLowerCase(chNext) != static_cast<unsigned char>(*s))
return false;
s++;
Expand Down

0 comments on commit 56dcfd3

Please sign in to comment.