Support C-style doc comments with !

This commit is contained in:
Jonathan Müller 2017-10-10 17:20:02 +02:00
commit dd0a20c6d5
2 changed files with 3 additions and 3 deletions

View file

@ -438,7 +438,7 @@ namespace
if (starts_with(p, "*/"))
// empty comment
p.skip(2u);
else if (in_main_file && starts_with(p, "*"))
else if (in_main_file && (starts_with(p, "*") || starts_with(p, "!")))
{
// doc comment
p.skip();

View file

@ -216,8 +216,8 @@ class name \
/// h
g(h)
/// i
/// i
/*! i
i */
using i = int;
/// j