From 1729c1824c5d45cd846f917158de42ce4d1f01aa Mon Sep 17 00:00:00 2001 From: John Ehresman Date: Thu, 22 Dec 2016 16:11:09 -0500 Subject: Don't style @1 as a decorator --- lexers/LexPython.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lexers/LexPython.cxx b/lexers/LexPython.cxx index a5a470347..6a2edde11 100644 --- a/lexers/LexPython.cxx +++ b/lexers/LexPython.cxx @@ -521,7 +521,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 (!IsAWordChar(sc.ch, options.unicodeIdentifiers)) { + if (!IsAWordStart(sc.ch, options.unicodeIdentifiers)) { sc.SetState(SCE_P_DEFAULT); } } else if ((sc.state == SCE_P_STRING) || (sc.state == SCE_P_CHARACTER)) { -- cgit v1.2.3