Fix and improve C comment indent heuristic
This commit is contained in:
parent
3e4a3e4037
commit
1e5271a4b7
2 changed files with 16 additions and 6 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue