SourceForge.net wrote:
Bugs item #1201716, was opened at 2005-05-13 16:32
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102439&aid=1201716&group_id=2439
Category: SciTE
No, that's Scintilla.
...
While we are on the topic, I asked some time ago a request on the PHP lexer which when unnoticed...
Is it possible to support hexadecimal numbers in PHP? In the form 0x1BADBEEF, of course.
How about this, Philippe? :)
// recognize bases 8,10 or 16 integers OR floating-point numbers
if (!IsADigit(ch)
&& strchr(".xXabcdefABCDEF", ch) == NULL
&& ((ch != '-' && ch != '+') || (chPrev != 'e' && chPrev != 'E'))) {These FOUR lines replace line 1515 in [naturalment] LexHTML.cxx. I am not sure who the "owner" of this module is, but this code works well for me. BTW, it fixes a small bug in the original, in that POSITIVE exponents were not seen as part of the float.
N.B. - the 'strchr' also handles the 'e' and 'E' exponent cases.
OTOH, the PHP numeric constant recognition and handling still has a number of "weak" spots because it does not track from the beginning what kind of literal it is: octal and hexadecimal numbers can NOT have decimal points and exponents, but decimal literals CAN "morph" into floating-point ones.
But this IS an improvement, and it will make Philippe happy! :)
Robert Roessler [EMAIL PROTECTED] http://www.rftp.com _______________________________________________ Scintilla-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scintilla-interest
