diff options
author | nyamatongwe <devnull@localhost> | 2008-07-19 10:32:00 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2008-07-19 10:32:00 +0000 |
commit | 747e1a269bece70cd11a1b63d99e2fc6b0212e18 (patch) | |
tree | 01b24af738085da4fdf761feaa1beca27a1b6c3b /src/LexHTML.cxx | |
parent | d909f13e1cb346e74d1bb958c7ed32b3d1a1d798 (diff) | |
download | scintilla-mirror-747e1a269bece70cd11a1b63d99e2fc6b0212e18.tar.gz |
Patch from Jason Oster in bug #2015354 where PHP string
variable followed immediately by comment.
Diffstat (limited to 'src/LexHTML.cxx')
-rw-r--r-- | src/LexHTML.cxx | 9 |
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: |