------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the
assignee.
http://bug
s.kde.org/show_bug.cgi?id=101213
------- Additional Comments From somekool somekool net
2006-11-29 01:34 -------
ok, there is a problem with my patch here for C++.
I've been writing ruby almost exclusively since, and had no
problem. but in languages like C++ that "overuses"
parenthesis, it is sightly of a pain.
the problem happens when writing this
if (x == f())
it won't complete the inner () because of the following line
in the patch
|| (nextChar == end_ch && prevChar != ch) )
and you will only get
if (x == f()
it's not too big of a deal maybe, I just type another ending
parathesis in this specific case.
but I wonder what smarter check could we do here. I guess
the best would be to use a syntax parser to know if I am
inside an incomplete block. but I'm afraid it might be slow.
i don't know though.
another idea, would be to consider all blocks are closed.
since the completion option is enabled. thus as a quick fix.
you could simply remove that check
|| (nextChar == end_ch && prevChar != ch)
and things should be better. it might even fix other
problems mentioned earlier.
thanks
_______________________________________________
KWrite-Devel mailing list
KWrite-Devel kde.org
ht
tps://mail.kde.org/mailman/listinfo/kwrite-devel
|