Hi all, [this is a repost]
Try this one:
class Bozo {
void func() {
if () {
if () { //
}
} else {
/* */
}
}
}
The last '}' will not indent correctly.
- removing the first // comment, or adding a */ cures the problem
- removing one level of if() does not show the problem
I already submitted this to bug-cc-modeļ¼ gnu.org... but...
It does not seem to be a cc-mode bug, coz it works in 21.1.8 with the
same cc-mode package installed.
It does not work under any of the 21.4.x XEmacses.
Moreover, parens-highlighting behaves strangely:
- it works 'forward', i.e putting the cursor on func()'s { shows a
correct match, but
- it does not work 'backwards', i.e putting the cursor on func()'s
last } shows am incorrect match.
Any ideas on what's wrong ? Thanxs.