Having a file
/**
* ---
# Comment
* ---
*/
void main()
{
}
Trying to get documentation as
dmd -o- -w -Dddocs main.d
Leads to the warning
(1): Warning: C preprocessor directive #Comment is not supported
I understand that it's supposed to be a valid D code inside DDoc comment, but dmd should at least report the file name where error happened. Also the meaning of the number in parentheses is not obvious.
I found a similar issue https://issues.dlang.org/show_bug.cgi?id=18836 marked as solved but dmd needs improvements on reporting this error: report the file name and position of so-called directive in the code, so users could find the cause of warning.
Comment #1 by robert.schadek — 2024-12-13T19:00:49Z