aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexPerl.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2000-12-01 23:02:12 +0000
committernyamatongwe <unknown>2000-12-01 23:02:12 +0000
commitc1a30f8590af2951b8b18b0abdaa66a14bf114d7 (patch)
treec08fa3e51bb1d309ff43167306206b9b1c88b5ca /src/LexPerl.cxx
parentc537dca3796342456e19c98e7b94baddd1c677c2 (diff)
downloadscintilla-mirror-c1a30f8590af2951b8b18b0abdaa66a14bf114d7.tar.gz
Patch from Steffen for treating % as an operator more often.
Diffstat (limited to 'src/LexPerl.cxx')
-rw-r--r--src/LexPerl.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/LexPerl.cxx b/src/LexPerl.cxx
index 1f86267fe..59d909b45 100644
--- a/src/LexPerl.cxx
+++ b/src/LexPerl.cxx
@@ -262,12 +262,14 @@ static void ColourisePerlDoc(unsigned int startPos, int length, int initStyle,
styler.ColourTo(i - 1, state);
if (isalpha(chNext) || chNext == '#' || chNext == '$' || chNext == '_') {
state = SCE_PL_HASH;
- } else if (chNext != '{' && chNext != '[') {
+ // } else if (chNext != '{' && chNext != '[') {
+ } else if (chNext == '{') {
styler.ColourTo(i, SCE_PL_HASH);
- i++;
- ch = ' ';
+ // i++;
+ // ch = ' ';
} else {
- styler.ColourTo(i, SCE_PL_HASH);
+ // styler.ColourTo(i, SCE_PL_HASH);
+ styler.ColourTo(i, SCE_PL_OPERATOR);
}
} else if (ch == '*') {
styler.ColourTo(i - 1, state);