diff options
| author | nyamatongwe <devnull@localhost> | 2005-05-16 01:25:33 +0000 | 
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2005-05-16 01:25:33 +0000 | 
| commit | 6b1efb11ea0073e7f894d93dbe67ba6936e2f18b (patch) | |
| tree | ebd3fc898027194069e7b7a29faf65d8d594458b | |
| parent | 7cff2feb1a9847f252d7cf63707911ae37a02ab0 (diff) | |
| download | scintilla-mirror-6b1efb11ea0073e7f894d93dbe67ba6936e2f18b.tar.gz | |
Patch from Robert Roessler allows hexadecimal literals in PHP.
| -rw-r--r-- | src/LexHTML.cxx | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/src/LexHTML.cxx b/src/LexHTML.cxx index 5c06276ad..372effdc7 100644 --- a/src/LexHTML.cxx +++ b/src/LexHTML.cxx @@ -1512,7 +1512,10 @@ static void ColouriseHyperTextDoc(unsigned int startPos, int length, int initSty  			}  			break;  		case SCE_HPHP_NUMBER: -			if (!IsADigit(ch) && ch != '.' && ch != 'e' && ch != 'E' && (ch != '-' || (chPrev != 'e' && chPrev != 'E'))) { +			// recognize bases 8,10 or 16 integers OR floating-point numbers +			if (!IsADigit(ch) +				&& strchr(".xXabcdefABCDEF", ch) == NULL +				&& ((ch != '-' && ch != '+') || (chPrev != 'e' && chPrev != 'E'))) {  				styler.ColourTo(i - 1, SCE_HPHP_NUMBER);  				if (isoperator(ch))  					state = SCE_HPHP_OPERATOR; | 
