dlang-community / libdparse

Library for lexing and parsing D source code
https://libdparse.dlang.io
Boost Software License 1.0
114 stars 56 forks source link

Parses Ddoc file but shouldn't #448

Closed rikkimax closed 1 year ago

rikkimax commented 2 years ago

https://dlang.org/spec/ddoc.html#using_ddoc_for_other_documentation

If first token is "Ddoc", then it should not be treated as D code.

This is a problem for some files like this one: https://github.com/dlang/phobos/blob/master/index.d

WebFreak001 commented 1 year ago

I don't think we want to support this and phobos also changed to .dd, which is a much more reasonable file extension for ddoc.