dlang / ddox

Advanced D documentation engine
MIT License
63 stars 21 forks source link

End of unit test examples is sometimes off #156

Open s-ludwig opened 7 years ago

s-ludwig commented 7 years ago
void foo() {}
///
unittest {
 ...
}

// }
void bar() {}

Picks up this as the unit test code:

 ...
}

because the last brace before the next declaration is searched. Instead, the code should be lexed and the matching brace of the unittest opening brace should be used.