← every case · 2000 · string forms
a block comment opener inside a string opens nothing. The file ends with a block comment of its own, so a comment opened there by mistake has a closer to reach, and a counter that ignores an opener nobody closes cannot pass by accident
| 1 | codecodecodecodecodecodecode | char *s = "/*"; |
| 2 | codecodecodecodecodecodecode | int x = 1; |
| 3 | commentscommentscommentscommentscommentscommentscomments | /* a real comment */ |
stringcommentthe tag around another language
the /* inside the string "/*" is read as a comment opener, and the comment ending the file closes it, so the code line between counts as comment
cloc --json --config /tmp/linejudge-empty-file cases/2000-string_forms/2040-comment_pair_opening_inside_a_string/input.c
--strip-str-comments
cloc --json --config /tmp/linejudge-empty-file cases/2000-string_forms/2040-comment_pair_opening_inside_a_string/input.c --strip-str-comments
the /* inside the string "/*" is read as a comment opener, and the comment ending the file closes it, so the code line between counts as comment
cloc --json --config /tmp/linejudge-empty-file cases/2000-string_forms/2040-comment_pair_opening_inside_a_string/input.c --docstring-as-code
codestats cases/2000-string_forms/2040-comment_pair_opening_inside_a_string/input.c --output json-compact --include-generated --no-gitignore --hidden --no-config
mezura cases/2000-string_forms/2040-comment_pair_opening_inside_a_string/input.c --output json --hide timing --no-default-config --no-local --counting content
mezura cases/2000-string_forms/2040-comment_pair_opening_inside_a_string/input.c --output json --hide timing --no-default-config --no-local --counting region
scc --format json --no-config cases/2000-string_forms/2040-comment_pair_opening_inside_a_string/input.c
tokei --output json cases/2000-string_forms/2040-comment_pair_opening_inside_a_string/input.c