aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexPerl.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2000-12-01 23:02:12 +0000
committernyamatongwe <devnull@localhost>2000-12-01 23:02:12 +0000
commit347020eeb7a844589288309afc9dc1bbb7ecda3a (patch)
treec08fa3e51bb1d309ff43167306206b9b1c88b5ca /src/LexPerl.cxx
parentd1817b89a1018f052e80e6fd1b22d0e1a19f25aa (diff)
downloadscintilla-mirror-347020eeb7a844589288309afc9dc1bbb7ecda3a.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);