← 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 | codecodecodecodecodecode | class Kept |
| 2 | codecodeextracodecodecode | { |
| 3 | commentscommentscommentscommentscommentscomments | /* Keep it for reference |
| 4 | commentscommentscommentscommentscommentscomments | int old = 1; |
| 5 | commentscommentsextracommentscommentscomments | //*/ |
| 6 | codecodecodecodecodecode | int kept = 2; |
| 7 | codecodeextracodecodecode | } |
stringcommentthe tag around another language
cloc --json cases/1000-comments/1090-block_comment_closed_after_a_line_comment/input.cs
--strip-str-comments
cloc --json cases/1000-comments/1090-block_comment_closed_after_a_line_comment/input.cs --strip-str-comments
cloc --json cases/1000-comments/1090-block_comment_closed_after_a_line_comment/input.cs --docstring-as-code
mezura cases/1000-comments/1090-block_comment_closed_after_a_line_comment/input.cs --output json --hide timing --no-default-config --no-local --counting content
mezura cases/1000-comments/1090-block_comment_closed_after_a_line_comment/input.cs --output json --hide timing --no-default-config --no-local --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