← every case · 1000 · comments
'//*/' closes a block comment, because '//' means nothing inside one. It is half of the C idiom for switching a block off and on: one character added in front of the opener makes that line a line comment, and this closer is then a line comment too instead of a stray symbol
| 1 | codecodecodecodecode | class Kept |
| 2 | codeextracodecodecode | { |
| 3 | commentscommentscommentscommentscomments | /* Keep it for reference |
| 4 | commentscommentscommentscommentscomments | int old = 1; |
| 5 | commentsextracommentscommentscomments | //*/ |
| 6 | codecodecodecodecode | int kept = 2; |
| 7 | codeextracodecodecode | } |
stringcommentthe tag around another language
cloc --json cases/1000-comments/1090-block_comment_closed_after_a_line_comment/input.cs
mezura cases/1000-comments/1090-block_comment_closed_after_a_line_comment/input.cs --output json --hide timing --counting content
mezura cases/1000-comments/1090-block_comment_closed_after_a_line_comment/input.cs --output json --hide timing --counting region
scc --format json cases/1000-comments/1090-block_comment_closed_after_a_line_comment/input.cs
the block is never closed, so the rest of the file counts as comment
tokei --output json cases/1000-comments/1090-block_comment_closed_after_a_line_comment/input.cs