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 authored and donho committed Aug 26, 2024
1 parent d2bb7a2 commit 8e26e08
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 8e26e08

Please sign in to comment.