Skip to content

Commit

Permalink
fixed python decorators
Browse files Browse the repository at this point in the history
  • Loading branch information
PavelBlend committed Dec 9, 2023
1 parent 3f1121e commit 22480a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lexers/LexPython.cxx
Expand Up @@ -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)) {
Expand Down

0 comments on commit 22480a1

Please sign in to comment.