Val�ry Croizier wrote:
There must be something wrong in the Eiffel lexer : after parentheses,
names starting with a dot are highlighted like numbers, which is very
annoying since this occurs frequenly. For instance :
(a).abs -- ".abs" is highlighted like a number
(a) .abs -- (one space before the dot) same problem
(a). abs -- (one space after the dot) the dot is highlighted like a number
First, this type of question/comment probably is more a "Scintilla"
issue, since it provides the lexing services to SciTE. :)
But yes, after looking at the LexEiffel.cxx source file, I could
believe that something might be wrong...
1) '.' shows up in *both* isEiffelOperator() and IsAWordChar()
2) the "if (sc.state == SCE_EIFFEL_NUMBER)" state then proceeds to
switch to SCE_EIFFEL_DEFAULT if the new char FAILS IsAWordChar()
3) when in the SCE_EIFFEL_DEFAULT state, a SCE_EIFFEL_NUMBER state may
be entered if a '.' is seen
I do not use Eiffel, so 1) may not be a problem, but 3) is suspect and
2) is likely a bug.
My USD 0.02.
Robert Roessler
[EMAIL PROTECTED]
http://www.rftp.com
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest