aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexPerl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/LexPerl.cxx')
-rw-r--r--src/LexPerl.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/LexPerl.cxx b/src/LexPerl.cxx
index f5487492a..833687741 100644
--- a/src/LexPerl.cxx
+++ b/src/LexPerl.cxx
@@ -640,7 +640,11 @@ static void ColourisePerlDoc(unsigned int startPos, int length, int initStyle,
} else if (iswordstart(ch)) {
state = SCE_PL_WORD;
preferRE = false;
- } else if (isoperator(ch)) {
+ } else if (isPerlOperator(ch)) {
+ if (ch == ')' || ch == ']')
+ preferRE = false;
+ else
+ preferRE = true;
styler.ColourTo(i, SCE_PL_OPERATOR);
}
}