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)) {