← every case · 1000 · comments
a block closes, code follows, then a stray close and a real open share a byte
| 1 | codecodecodecodecode | int w = 8; /* tail |
| 2 | codecodecodecodecode | */ int z = 9; */* int y = 10; |
| 3 | commentscommentscommentscommentscomments | hidden by the reopened block |
| 4 | commentsextracommentscommentscomments | */ |
stringcommentthe tag around another language
the block comment is cut out together with the line break inside it, so the code before the opener and the code after the closer become one line and the line that vanished is charged to comments
cloc --json cases/1000-comments/1120-close_then_code_then_stray_and_reopen/input.c
mezura cases/1000-comments/1120-close_then_code_then_stray_and_reopen/input.c --output json --hide timing --counting content
mezura cases/1000-comments/1120-close_then_code_then_stray_and_reopen/input.c --output json --hide timing --counting region
scc --format json cases/1000-comments/1120-close_then_code_then_stray_and_reopen/input.c
a line that began inside a block is a comment, so the statement after the close is lost
tokei --output json cases/1000-comments/1120-close_then_code_then_stray_and_reopen/input.c