https://d.puremagic.com/issues/show_bug.cgi?id=11823

           Summary: ddoc: __FILE__ and other built-in symbols with
                    underscores should be specially parsed
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Andrej Mitrovic <[email protected]> 2013-12-26 
05:03:14 PST ---
http://dlang.org/phobos/std_exception.html#.assertNotThrown

string file     The file where the error occurred. Defaults to _FILE__.

Note the "_FILE__" instead of "__FILE__". This is because ddoc has a special
feature allowing you to avoid highlighting symbols in the output, e.g.:

-----
/// This function foo is named _foo
void foo() { }
-----

This will highlight the first foo word but not the second.

However, for __FILE__ and other built-in symbols beginning with an underscore
ddoc should probably avoid interpreting the leading underscore as an attempt to
de-emphasize the symbol, and instead just output these symbols as-is.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to