Author Topic: VS2009 Slick-C enum parsing bug  (Read 3189 times)

byates

  • Senior Community Member
  • Posts: 105
  • Hero Points: 8
VS2009 Slick-C enum parsing bug
« on: March 22, 2009, 01:56:52 am »
VS2009 Slick-C compiler will not parse an enumeration properly if the leading { is not on the same line and the enum keyword.

For example this compiles with no errors:
Code: [Select]
enum {
BV_DECLARATION_INDENT,
BV_STATEMENT_INDENT
};
While this will not:
Code: [Select]
enum
{
BV_DECLARATION_INDENT,
BV_STATEMENT_INDENT
};

byates

  • Senior Community Member
  • Posts: 105
  • Hero Points: 8
Re: VS2009 Slick-C enum parsing bug
« Reply #1 on: March 27, 2009, 04:19:45 pm »
I noticed that this issue wasn't able to be fixed in the VS2009 release.  I also found that the parsing problem occurs when enum does not have an identifier (enum type name) or '{' on the same line.  This is a minor issue, but does show up when the beautifier moves the '{'.