-- Nix <nix(a)esperi.demon.co.uk> spake thusly:
Bring up a java-mode (or JDE) buffer and insert this into it:
public class Foo
{
class Bar // foo.
{
class Baz
{
/* foo. */
int flobble (String foo)
{
}
}
}
}
Note that the second closing parenthesis is believed (by, for
instance, `(goto-char (scan-sexps (point) -1))') to match the very
first open parenthesis, and that deleting either of the comments
corrects this misbehaviour.
Am I right that this can only reasonably be interpreted as a bug in
the XEmacs C core, or is it something completely different?
This is a bug in the syntax handling which was introduced along with
the latest syntax table enhancement I added. It also manifests in
c++-mode. I haven't yet found a fix for it, but I hope to do so soon.