aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2008-07-19 10:32:00 +0000
committernyamatongwe <devnull@localhost>2008-07-19 10:32:00 +0000
commit747e1a269bece70cd11a1b63d99e2fc6b0212e18 (patch)
tree01b24af738085da4fdf761feaa1beca27a1b6c3b /src
parentd909f13e1cb346e74d1bb958c7ed32b3d1a1d798 (diff)
downloadscintilla-mirror-747e1a269bece70cd11a1b63d99e2fc6b0212e18.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: