aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/LexPython.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/LexPython.cxx b/src/LexPython.cxx
index 85fe7d658..01d406d0d 100644
--- a/src/LexPython.cxx
+++ b/src/LexPython.cxx
@@ -217,10 +217,8 @@ static void ColourisePyDoc(unsigned int startPos, int length, int initStyle,
sc.SetState(SCE_P_DEFAULT);
}
} else if (sc.state == SCE_P_DECORATOR) {
- if (sc.ch == '\r' || sc.ch == '\n') {
+ if (!IsAWordChar(sc.ch)) {
sc.SetState(SCE_P_DEFAULT);
- } else if (sc.ch == '#') {
- sc.SetState((sc.chNext == '#') ? SCE_P_COMMENTBLOCK : SCE_P_COMMENTLINE);
}
} else if ((sc.state == SCE_P_STRING) || (sc.state == SCE_P_CHARACTER)) {
if (sc.ch == '\\') {