Emacs-D-Mode-Maintainers / Emacs-D-Mode

An Emacs mode for D code.
GNU General Public License v3.0
84 stars 22 forks source link

Indentation is wrong for an enum with EnumBaseType #56

Closed landaire closed 8 years ago

landaire commented 8 years ago

For an enum with a base type:

  enum : char {
    eof = cast(char)-1,
      openParen = '(',
      closeParen = ')',
      comment = ';'
  };

The indentation for all lines after the first (in this case eof) are indented one extra level. This does not occur with enums that don't have a base type specified.

russel commented 8 years ago

I believe this is a duplicate of #19.

CyberShadow commented 8 years ago

Closing per Russel's comment.