aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexPython.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/LexPython.cxx')
-rw-r--r--src/LexPython.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/LexPython.cxx b/src/LexPython.cxx
index 6669694d1..a4c7629f3 100644
--- a/src/LexPython.cxx
+++ b/src/LexPython.cxx
@@ -241,7 +241,7 @@ static void ColourisePyDoc(unsigned int startPos, int length, int initStyle,
chPrev = ' ';
chNext = styler.SafeGetCharAt(i + 1);
}
- } else if (isoperator(ch)) {
+ } else if (isoperator(ch) || ch == '`') {
styler.ColourTo(i - 1, state);
styler.ColourTo(i, SCE_P_OPERATOR);
}
@@ -260,7 +260,7 @@ static void ColourisePyDoc(unsigned int startPos, int length, int initStyle,
chPrev = ' ';
chNext = styler.SafeGetCharAt(i + 1);
}
- } else if (isoperator(ch)) {
+ } else if (isoperator(ch) || ch == '`') {
styler.ColourTo(i, SCE_P_OPERATOR);
}
}