Skip to content

Commit

Permalink
Simplify Python smart indent regex
Browse files Browse the repository at this point in the history
  • Loading branch information
alankilborn committed Aug 24, 2024
1 parent b32c07f commit c21d441
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PowerEditor/src/Notepad_plus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3769,7 +3769,7 @@ void Notepad_plus::maintainIndentation(wchar_t ch)
_pEditView->execute(SCI_SETTARGETRANGE, startPos, endPos);

// colon optionally followed by only whitespace and/or start-of-comment, but NOT on a line that is already a comment
const char colonExpr[] = "^[^#]*\\K:[ \t]*(#|$)";
const char colonExpr[] = ":[ \t]*(#|$)";

auto posColon = _pEditView->execute(SCI_SEARCHINTARGET, strlen(colonExpr), reinterpret_cast<LPARAM>(colonExpr));

Expand Down

0 comments on commit c21d441

Please sign in to comment.