[Issue 16498] New: ddoc should offer a built-in macro for passing raw text through

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Sep 15 09:18:08 PDT 2016


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 at puremagic.com
          Reporter: andrei at 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".

--


More information about the Digitalmars-d-bugs mailing list