aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2001-06-21 13:11:21 +0000
committernyamatongwe <devnull@localhost>2001-06-21 13:11:21 +0000
commitb5d6451344d1ec6d00b2eb023ace68052293d9b2 (patch)
tree18e5a72cca79f5963abac8db26973544c3e10320 /src
parent56da5b43c3856ca1ebdf20a7963af4566d71498c (diff)
downloadscintilla-mirror-b5d6451344d1ec6d00b2eb023ace68052293d9b2.tar.gz
Patch from Shane to fix PHP operator style applying too late.
Diffstat (limited to 'src')
-rw-r--r--src/LexHTML.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/LexHTML.cxx b/src/LexHTML.cxx
index 20418c747..847c690cb 100644
--- a/src/LexHTML.cxx
+++ b/src/LexHTML.cxx
@@ -1194,13 +1194,19 @@ static void ColouriseHyperTextDoc(unsigned int startPos, int length, int initSty
case SCE_HPHP_NUMBER:
if (!isdigit(ch)) {
styler.ColourTo(i - 1, SCE_HPHP_NUMBER);
- state = SCE_HPHP_DEFAULT;
+ if (isoperator(ch))
+ state =SCE_HPHP_OPERATOR;
+ else
+ state = SCE_HPHP_DEFAULT;
}
break;
case SCE_HPHP_VARIABLE:
if (!iswordstart(ch)) {
styler.ColourTo(i - 1, SCE_HPHP_VARIABLE);
- state = SCE_HPHP_DEFAULT;
+ if (isoperator(ch))
+ state =SCE_HPHP_OPERATOR;
+ else
+ state = SCE_HPHP_DEFAULT;
}
break;
case SCE_HPHP_COMMENT: