www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12794] New: ddoc does not properly support code snippets for

https://issues.dlang.org/show_bug.cgi?id=12794

          Issue ID: 12794
           Summary: ddoc does not properly support code snippets for
                    documented parameters
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: ddoc
          Severity: enhancement
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: andrej.mitrovich gmail.com

The ddoc output of this function looks bad:

-----
foo.

Params:
  name = name

  callback = A callback. Example of the callback:

-----
void someCallback();
{
    int x;
}
-----

 etc = etc
*/
void foo(string name, void function() callback, int etc);
-----

The location of the "void function() callback" parameter is stuck at the left
of the code snippet instead of the beginning of the description which was: "A
callback. Example of the callback: "

--
May 24 2014