Improving ddoc

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Thu Jan 1 11:06:17 PST 2015


On 1/1/15 3:32 AM, Walter Bright wrote:
> On 1/1/2015 1:47 AM, Andrei Alexandrescu wrote:
>> Stars and underlines are popular due to markdown. There'd be
>> limitations, e.g.
>> pairs occurring across a ddoc parent won't be considered for expansion
>> etc. Also
>> the defaults can be written to be idempotent. (Below I am removing the
>> single
>> quote because indeed it's not fitting):
>>
>> BACKQUOTED=`$0`
>> QUOTED="$0"
>> UNDERLINED=_$0_
>> STARRED=*$0*
>>
>> So essentially we get to start 100% backward compatible and figure out
>> under
>> what circumstances the macros expand. I think we can get this working.
>
> Ddoc assumes ( ) nests. But this would require that these characters
> nest, too:
>
>     *abc_def * _i
>
> for example, which is stretching things a bit because they do not
> naturally nest.

No nesting. Again I'm talking simple rules. They should get us a ton of 
mileage. -- Andrei




More information about the Digitalmars-d mailing list