You should ask the cc-mode maintainer. I tried your code and I did not
notice the problem on my machine. I am using the cc-mode that comes with
Emacs, which is not the latest version. If you are using the latest
version, this could be a bug on cc-mode. This is the email list for
reporting bugs [EMAIL PROTECTED] and this one is for help
[EMAIL PROTECTED] 

Javier

-----Original Message-----
From: Douglas WF Acheson [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, August 23, 2001 11:23 AM
To: [EMAIL PROTECTED]
Subject: Indentation problem

Hello,

  This is not directly related to JDEE, but I have a weird indentation
problem and was wondering if anyone has come across it.  Given the
following code:

public class A
{
  public void b()
  {
    if ()
    {
    } // 1
  }
  /**
   *
   */
  public void c()
  {
  }
}

The last brace does not line up properly the emacs/parser - brace
matcher thinks the last brace belongs to the method b and not the
closing  brace for the class.  If I remove the comment on the if "// 1"
then it works perfectly. :-( ????

  Any help would be appreciated.

Douglas WF Acheson

=====
Douglas WF Acheson

__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

Reply via email to