digitalmars.D.bugs - [Issue 16498] New: ddoc should offer a built-in macro for passing
- via Digitalmars-d-bugs (22/22) Sep 15 2016 https://issues.dlang.org/show_bug.cgi?id=16498
https://issues.dlang.org/show_bug.cgi?id=16498 Issue ID: 16498 Summary: ddoc should offer a built-in macro for passing raw text through Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: andrei erdani.com There is no solution in ddoc for just passing a bunch of text unprocessed. This is easy to implement by building in a macro such as $(DDOC_RAWTEXT ... txt ...) which accepts any text with balanced parens. For really arbitrary text (no need for balanced parens) we should define a heredoc-style mechanism, for example: $(DDOC_HEREDOC 336000678c4357cd9fed41765e4aa5bd hello ) ( world 336000678c4357cd9fed41765e4aa5bd) should expand to "hello ) ( world". --
Sep 15 2016