From d1b3fe6feea2d91abe6fe28cc160fcbf2483117d Mon Sep 17 00:00:00 2001 From: PavelBlend Date: Tue, 19 Dec 2023 23:04:05 +0300 Subject: [PATCH] Fix python wrong decorator attribute colors Fix #5894, close #14507 --- PowerEditor/src/ScintillaComponent/ScintillaEditView.h | 1 + 1 file changed, 1 insertion(+) diff --git a/PowerEditor/src/ScintillaComponent/ScintillaEditView.h b/PowerEditor/src/ScintillaComponent/ScintillaEditView.h index d7bd2f2f004..bd95a990495 100644 --- a/PowerEditor/src/ScintillaComponent/ScintillaEditView.h +++ b/PowerEditor/src/ScintillaComponent/ScintillaEditView.h @@ -887,6 +887,7 @@ friend class Finder; void setPythonLexer() { setLexer(L_PYTHON, LIST_0 | LIST_1); execute(SCI_SETPROPERTY, reinterpret_cast("fold.quotes.python"), reinterpret_cast("1")); + execute(SCI_SETPROPERTY, reinterpret_cast("lexer.python.decorator.attributes"), reinterpret_cast("1")); }; void setGDScriptLexer() {