Issue with KDevelop: Is it using different parsers in parallell for different puropuses?
Sascha Cunz
sascha at sacu.de
Tue Aug 15 18:40:43 UTC 2006
Am Dienstag, 15. August 2006 20:18 schrieb Erik Sigra:
> > Från: Jakob Petsovits <jpetso at gmx.at>
> > class MyClass
> > {
> > int main()
> > {
> > return ((int) bla == |
> > }
> > };
> >
> > where "|" is the cursor and you haven't finished the line yet.
> > Nevertheless,
> > Katepart highlights everything correctly, including the "return" and
> > "int" tokens which are part of a statement that can't be parsed
> > correctly.
>
> I think the code is correct until the "|" and it should be highlighted
> correctly until there. Then it is OK to highlight the following "}" and
> "};" (and the rest of the text) in red (as in syntax error), because it is
> not valid and it would be too complex to guess the meaning. Then when you
> have finished typing the statement, the following lines will be
> rehighlighted "correctly". I do not expect any more advanced behaviour than
> that.
i just hope this will never ever become reality. I could not bear it, if my
text editor - where i have to enter code, thus be creative - would bother me
that much with such a flashing.
Just my 2 cents into a bottle that is more than full....
Sascha
More information about the KDevelop-devel
mailing list