aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/LexHTML.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/LexHTML.cxx b/src/LexHTML.cxx
index d74981ec5..2f0c72851 100644
--- a/src/LexHTML.cxx
+++ b/src/LexHTML.cxx
@@ -1232,6 +1232,7 @@ static void ColouriseHyperTextDoc(unsigned int startPos, int length, int initSty
case SCE_HPHP_HSTRING_VARIABLE:
if (!iswordstart(ch)) {
styler.ColourTo(i-1, StateToPrint);
+ i--; // strange but it works
state = SCE_HPHP_HSTRING;
}
break;