From 22480a1dd5cc2268a38dc30dbd59c5b15f79bac9 Mon Sep 17 00:00:00 2001 From: PavelBlend Date: Sat, 9 Dec 2023 15:52:47 +0300 Subject: [PATCH] fixed python decorators - See: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/5894 - See: https://sourceforge.net/p/scintilla/bugs/2139/ --- lexers/LexPython.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lexers/LexPython.cxx b/lexers/LexPython.cxx index 6f29a39f..4d529b6c 100644 --- a/lexers/LexPython.cxx +++ b/lexers/LexPython.cxx @@ -761,7 +761,7 @@ void SCI_METHOD LexerPython::Lex(Sci_PositionU startPos, Sci_Position length, in sc.SetState(SCE_P_DEFAULT); } } else if (sc.state == SCE_P_DECORATOR) { - if (!IsAWordStart(sc.ch, options.unicodeIdentifiers)) { + if (!IsAWordChar(sc.ch, options.unicodeIdentifiers)) { sc.SetState(SCE_P_DEFAULT); } } else if (IsPySingleQuoteStringState(sc.state)) {