Skip to content

Commit

Permalink
update Lex Function
Browse files Browse the repository at this point in the history
  • Loading branch information
daddel80 committed Aug 19, 2023
1 parent 1cadb18 commit 890f5d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/MultiReplaceLexer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class LexerSimple : public LexerBase {
astyler.StartAt(startPos);
astyler.StartSegment(startPos);
for (int k = 0; k < length; k++) {
astyler.ColourTo(startPos + k, 1);
astyler.ColourTo(startPos + k, (startPos + k) % 2);
}
}
astyler.Flush();
Expand Down
1 change: 1 addition & 0 deletions src/MultiReplacePanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ void MultiReplace::connectToScintilla() {
::SendMessage(_hScintilla, SCI_STARTSTYLING, 0, 0);
::SendMessage(_hScintilla, SCI_SETSTYLING, 5, 1); // set the first 5 characters to style 1


int lexerStatus = ::SendMessage(_hScintilla, SCI_GETLEXER, 0, 0);
wchar_t buffer[256];

Expand Down

0 comments on commit 890f5d8

Please sign in to comment.