[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwrite-devel
Subject:    Re: Highlight flaw
From:       Anders Lund <anders () alweb ! dk>
Date:       2002-02-28 23:19:44
[Download RAW message or body]

On Thursday 28 February 2002 22:55, Christoph Cullmann wrote:
> On Wednesday 27 February 2002 14:37, Anders Lund wrote:
> > Hi,
> >
> > While writing the manual which makes me look hard at the code sometimes,
> > I realized the the hl rule HlCChar can never match. It feeds one
> > character to a method returning 0L if the length of the provided char* is
> > < 2.
> >
> > Now, unless that is a mistake, I suggest that we just have
> > HlCChar::checkHl() return 0L without caring to try ;-\
> >
> > Otherwise, maybe we should feed the checkEscapedChar()  method at least 2
> > chars...
>
> Hmm, C highlighting uses HlCChar and stuff like 'a' or '\n' works just
> fine, where is the problem ? I don't really understand why it works, but it
> seems to work.

I didn't look in the c file - i will. a guess is that it works in the string 
funcs, like for c++:)
-anders

_______________________________________________
kwrite-devel mailing list
kwrite-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/kwrite-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic