← every case · 1000 · comments

1050-block_comment_holding_line_comment

a line comment inside a block comment is part of the block

read ascloc.defaultmezura.contentmezura.regionscc.defaulttokei.default
input.c
1comments/* block opens
2comments// this line comment is inside the block
3commentsend of block */
4codeint x = 1;

stringcommentthe tag around another language

What each tool answered

cloc.default ✓ agrees
the rules ask4 lines · 0 blanks · 1 code · 3 comments
it answers4 lines · 0 blanks · 1 code · 3 comments

cloc --json cases/1000-comments/1050-block_comment_holding_line_comment/input.c

mezura.content ✓ agrees
the rules ask4 lines · 1 code · 3 comments · 0 extra
it answers4 lines · 1 code · 3 comments · 0 extra

mezura cases/1000-comments/1050-block_comment_holding_line_comment/input.c --output json --hide timing --counting content

mezura.region ✓ agrees
the rules ask4 lines · 0 blanks · 1 code · 3 comments
it answers4 lines · 0 blanks · 1 code · 3 comments

mezura cases/1000-comments/1050-block_comment_holding_line_comment/input.c --output json --hide timing --counting region

scc.default ✓ agrees
the rules ask4 lines · 0 blanks · 1 code · 3 comments
it answers4 lines · 0 blanks · 1 code · 3 comments

scc --format json cases/1000-comments/1050-block_comment_holding_line_comment/input.c

tokei.default ✓ agrees
the rules ask4 lines · 0 blanks · 1 code · 3 comments
it answers4 lines · 0 blanks · 1 code · 3 comments

tokei --output json cases/1000-comments/1050-block_comment_holding_line_comment/input.c