diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/LexHTML.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/LexHTML.cxx b/src/LexHTML.cxx index 8f3b7f6c8..f7ef6cd48 100644 --- a/src/LexHTML.cxx +++ b/src/LexHTML.cxx @@ -1174,6 +1174,8 @@ static void ColouriseHyperTextDoc(unsigned int startPos, int length, int initSty state = SCE_HPHP_SIMPLESTRING; } else if (ch == '$') { state = SCE_HPHP_VARIABLE; + } else if (isoperator(ch)) { + state = SCE_HPHP_OPERATOR; } else { state = SCE_HPHP_DEFAULT; } @@ -1231,7 +1233,8 @@ static void ColouriseHyperTextDoc(unsigned int startPos, int length, int initSty state = SCE_HPHP_HSTRING; } break; - case SCE_HPHP_DEFAULT: + case SCE_HPHP_OPERATOR: + case SCE_HPHP_DEFAULT: styler.ColourTo(i - 1, StateToPrint); if (isdigit(ch)) { state = SCE_HPHP_NUMBER; @@ -1251,6 +1254,8 @@ static void ColouriseHyperTextDoc(unsigned int startPos, int length, int initSty state = SCE_HPHP_SIMPLESTRING; } else if (ch == '$') { state = SCE_HPHP_VARIABLE; + } else if (isoperator(ch)) { + state = SCE_HPHP_OPERATOR; } break; ///////////// end - PHP state handling |