diff options
author | nyamatongwe <unknown> | 2000-12-01 23:02:12 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2000-12-01 23:02:12 +0000 |
commit | c1a30f8590af2951b8b18b0abdaa66a14bf114d7 (patch) | |
tree | c08fa3e51bb1d309ff43167306206b9b1c88b5ca /src | |
parent | c537dca3796342456e19c98e7b94baddd1c677c2 (diff) | |
download | scintilla-mirror-c1a30f8590af2951b8b18b0abdaa66a14bf114d7.tar.gz |
Patch from Steffen for treating % as an operator more often.
Diffstat (limited to 'src')
-rw-r--r-- | src/LexPerl.cxx | 10 |
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); |