diff options
| author | nyamatongwe <devnull@localhost> | 2001-06-12 04:16:05 +0000 | 
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2001-06-12 04:16:05 +0000 | 
| commit | 8326df8a963f45b7152fce157f2d6ce293843396 (patch) | |
| tree | 65490b18c1ada769f52e7f621f000cd2b11e0698 /src/LexHTML.cxx | |
| parent | 7cbc0667020e39dd64cb34eb74be04306e67520e (diff) | |
| download | scintilla-mirror-8326df8a963f45b7152fce157f2d6ce293843396.tar.gz | |
Additions from Shane Caraveo at ActiveState to add a PHP operator
lexical class.
Diffstat (limited to 'src/LexHTML.cxx')
| -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  | 
