aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2008-07-19 10:32:00 +0000
committernyamatongwe <unknown>2008-07-19 10:32:00 +0000
commit6afdfc1da5ec550c9b8bd5351698121c3647159d (patch)
tree01b24af738085da4fdf761feaa1beca27a1b6c3b /src
parent01d9414495171ac1609a73d517481576a29e6969 (diff)
downloadscintilla-mirror-6afdfc1da5ec550c9b8bd5351698121c3647159d.tar.gz
Patch from Jason Oster in bug #2015354 where PHP string
variable followed immediately by comment.
Diffstat (limited to 'src')
-rw-r--r--src/LexHTML.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/LexHTML.cxx b/src/LexHTML.cxx
index 59bd87c68..f63923d07 100644
--- a/src/LexHTML.cxx
+++ b/src/LexHTML.cxx
@@ -1644,12 +1644,9 @@ static void ColouriseHyperTextDoc(unsigned int startPos, int length, int initSty
}
break;
case SCE_HPHP_VARIABLE:
- if (!IsPhpWordChar(ch)) {
- styler.ColourTo(i - 1, SCE_HPHP_VARIABLE);
- if (IsOperator(ch))
- state = SCE_HPHP_OPERATOR;
- else
- state = SCE_HPHP_DEFAULT;
+ if (!IsPhpWordChar(chNext)) {
+ styler.ColourTo(i, SCE_HPHP_VARIABLE);
+ state = SCE_HPHP_DEFAULT;
}
break;
case SCE_HPHP_COMMENT: