← every case · 1000 · comments
the comment ends on a path pattern, assets/*/, and C reads the /* inside a comment as text, so the */ that shares its asterisk closes the comment there. Rust nests its comments and reads the same bytes as one more level, which is case 1215. The file ends with a block comment of its own, so a comment that runs on past the pattern by mistake has a closer to reach
| 1 | commentscommentscommentscommentscommentscommentscomments | /* Copies every folder under assets/*/ |
| 2 | codecodecodecodecodecodecode | int copy_assets(void) { return 0; } |
| 3 | blanksblanksblanksextrablanksblanksblanks | |
| 4 | codecodecodecodecodecodecode | int main(void) { return copy_assets(); } |
| 5 | commentscommentscommentscommentscommentscommentscomments | /* Run once by the build. */ |
stringcommentthe tag around another language
cloc --json --config /tmp/linejudge-empty-file cases/1000-comments/1195-closer_sharing_a_byte_with_an_opener_in_the_text/input.c
--strip-str-comments
cloc --json --config /tmp/linejudge-empty-file cases/1000-comments/1195-closer_sharing_a_byte_with_an_opener_in_the_text/input.c --strip-str-comments
cloc --json --config /tmp/linejudge-empty-file cases/1000-comments/1195-closer_sharing_a_byte_with_an_opener_in_the_text/input.c --docstring-as-code
codestats cases/1000-comments/1195-closer_sharing_a_byte_with_an_opener_in_the_text/input.c --output json-compact --include-generated --no-gitignore --hidden --no-config
mezura cases/1000-comments/1195-closer_sharing_a_byte_with_an_opener_in_the_text/input.c --output json --hide timing --no-default-config --no-local --counting content
mezura cases/1000-comments/1195-closer_sharing_a_byte_with_an_opener_in_the_text/input.c --output json --hide timing --no-default-config --no-local --counting region
scc --format json --no-config cases/1000-comments/1195-closer_sharing_a_byte_with_an_opener_in_the_text/input.c
the */ of assets/*/ does not close the comment, which runs on to the */ of the last line, so the code and the blank line between count as comments. With a space or a letter between the / and the */ the file reads right
tokei --output json cases/1000-comments/1195-closer_sharing_a_byte_with_an_opener_in_the_text/input.c