[Issue 15122] Ddoc: macros not expanded in comments in code sections

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Sep 27 07:49:25 PDT 2015


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

ag0aep6g at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ddoc
                 CC|                            |ag0aep6g at gmail.com
          Component|phobos                      |dmd
            Summary|[std.random] DDoc page      |Ddoc: macros not expanded
                   |                            |in comments in code
                   |                            |sections
           Severity|enhancement                 |normal

--- Comment #1 from ag0aep6g at gmail.com ---
Looks like a dmd issue.

test.d:
--------
/**
() ) $(RPAREN)
---
() ) $(RPAREN)
// () ) $(RPAREN)
---
*/
void main() {}
--------

`dmd -o- -Dftest.html test.d` produces (excerpt without HTML):
--------
() ) )
() ) )
// () $(RPAREN) $(RPAREN)
--------

Expected:
--------
() ) )
() ) )
// () ) )
--------

--


More information about the Digitalmars-d-bugs mailing list