adamdruppe / adrdox

41 stars 14 forks source link

error on declarations which have a templated UDA #29

Open ghost91- opened 6 years ago

ghost91- commented 6 years ago

Running adrdox on the following code results in errors:

module test.test;

///
struct Foo(T){}

///
@Foo!int void fun() {}

///
@Foo!string struct Bar {}
test.d(7:5)[error]: Declaration expected
test.d(10:5)[error]: Declaration expected

The corresponding symbols are not included in the generated documentation.

When adding parentheses around the template argument, the error messages still appear. However, the symbols appear in the generated documentation, but the UDAs are missing.

adamdruppe commented 6 years ago

ok, i think the parser just doesn't realize that @ can have a thing too

I have been insanely busy these last few weeks (I am getting married next week! and my day job has the busiest time of the year too) but i will try to look into it by the end of this week.

There's a couple parser bugs that need to be fixed.

ghost91- commented 6 years ago

Don't worry, this is not urgent for me at all ;) And congratulations on getting married!