Robert Roessler:
> // recognize bases 8,10 or 16 integers OR floating-point numbers
> if (!IsADigit(ch)
> && strchr(".xXabcdefABCDEF", ch) == NULL
> && ((ch != '-' && ch != '+') || (chPrev != 'e' && chPrev != 'E'))) {
OK, committed.
Philippe Lhoste:
# Well, I found, according to Neil, that those rules were fragiles (false
# positives on correct constructs) and complicated the code too much for
# too little benefit as these bad constructs happen rarely, except when
# typing.
I would be happier with a patch that provided a function in each
affected lexer that took the current token and validated it as a
number reporting either good / bad or the correct lexical class. This
would have less impact on the generic StyleContext class and be easier
to turn on or off or be modified for particular languages. When these
were working well, they could be merged into a generic function that
was applicable to many languages which follow similar rules.
Neil
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest