← 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 | codecodecodecodecodecodecode | class Kept |
| 2 | codecodecodeextracodecodecode | { |
| 3 | commentscommentscommentscommentscommentscommentscomments | /* Keep it for reference |
| 4 | commentscommentscommentscommentscommentscommentscomments | int old = 1; |
| 5 | commentscommentscommentsextracommentscommentscomments | //*/ |
| 6 | codecodecodecodecodecodecode | int kept = 2; |
| 7 | codecodecodeextracodecodecode | } |
stringcommentthe tag around another language
cloc --json --config /tmp/linejudge-empty-file cases/1000-comments/1090-block_comment_closed_after_a_line_comment/input.cs
--strip-str-comments
cloc --json --config /tmp/linejudge-empty-file cases/1000-comments/1090-block_comment_closed_after_a_line_comment/input.cs --strip-str-comments
cloc --json --config /tmp/linejudge-empty-file cases/1000-comments/1090-block_comment_closed_after_a_line_comment/input.cs --docstring-as-code
codestats cases/1000-comments/1090-block_comment_closed_after_a_line_comment/input.cs --output json-compact --include-generated --no-gitignore --hidden --no-config
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 --no-config 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