Fix and improve C comment indent heuristic

This commit is contained in:
Jonathan Müller 2018-01-15 09:08:48 +01:00
commit 1e5271a4b7
2 changed files with 16 additions and 6 deletions

View file

@ -202,7 +202,8 @@ TEST_CASE("comment content")
/** Multiline
C
comment */
comment
with indent */
/** Multiline
C
@ -227,7 +228,7 @@ comment */
REQUIRE(comments[2u].content == "multi\nline\ncomment");
REQUIRE(comments[3u].content == "C comment");
REQUIRE(comments[4u].content == "C comment no space");
REQUIRE(comments[5u].content == "Multiline\nC\ncomment");
REQUIRE(comments[5u].content == "Multiline\nC\n comment\nwith indent");
REQUIRE(comments[6u].content == "Multiline\nC\n comment\n with\n indent");
REQUIRE(comments[7u].content == "Multiline\nC\ncomment\nwith\nindent\nstar");
}