www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - ddoc: enum members documentation not correctly generated

Apparently, how the source code is formatted also affect the content of the 
generated documentation:

//-----------------------------------------------
/// my enum
enum E1
{
	A, /// element a
	B  /// element b
}

/// my enum
enum E2
{
	/// element a
	A,
	/// element b
	B
}

/// my enum
enum E3
{
	  A /// element a
	, B /// element b
}

/// my enum
enum E4
{
	A /// element a
	,
	B /// element b
}

/// my enum
enum E5
{
	/// element a
	A
	,
	/// element b
	B
}
//-----------------------------------------------

E1 is ok.
E2.B and E5.B get the same documentation as E2.A and E5.A, respectively.
E3.A and E4.A don't get any documentation.

-- 
Carlos Santander Bernal
May 14 2006