diff options
author | nyamatongwe <unknown> | 2001-06-12 04:16:05 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2001-06-12 04:16:05 +0000 |
commit | 3954e9315e7f759975626e51107741b29438839e (patch) | |
tree | 65490b18c1ada769f52e7f621f000cd2b11e0698 /src | |
parent | 3cdce44ddeb99d0eaa5426c867cc4efbc1b48638 (diff) | |
download | scintilla-mirror-3954e9315e7f759975626e51107741b29438839e.tar.gz |
Additions from Shane Caraveo at ActiveState to add a PHP operator
lexical class.
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 |