Simplify Python smart indent regex

Fix #15573, close #15574
This commit is contained in:
Alan Kilborn 2024-08-24 06:47:39 -04:00 committed by Don Ho
parent d2bb7a2af6
commit 8e26e08c1c
1 changed files with 1 additions and 1 deletions

View File

@ -3769,7 +3769,7 @@ void Notepad_plus::maintainIndentation(wchar_t ch)
_pEditView->execute(SCI_SETTARGETRANGE, startPos, endPos); _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 // 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)); auto posColon = _pEditView->execute(SCI_SEARCHINTARGET, strlen(colonExpr), reinterpret_cast<LPARAM>(colonExpr));