Issue with KDevelop: Is it using different parsers in parallell for different puropuses?

Amilcar do Carmo Lucas webmaster at kdevelop.org
Wed Aug 16 09:01:31 UTC 2006


On Tuesday 15 August 2006 20:40, Sascha Cunz wrote:
> 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.
We already have such warnings. It's called "problem reporter" and it sits at 
the bottom of KDevelop. It already does exactly what you want.

-- 
Amilcar Lucas
Webmaster
The KDevelop project




More information about the KDevelop-devel mailing list