← every case · 5000 · line splices
the splice of case 5030 on a comment line holding no letter or digit at all, which is how a decorative rule is written. What a line says has no bearing on whether it continues
| 1 | codecodecodecodecodecodecode | int a = 1; |
| 2 | commentscommentscommentsextracommentscommentscomments | // ---- \ |
| 3 | commentscommentscommentscommentscommentscommentscomments | int b = 2; |
| 4 | codecodecodecodecodecodecode | int c = 3; |
stringcommentthe tag around another language
a comment carrying no letter or digit is read like any other: it takes its line break with it and stops there, so the line spliced onto it is joined to the comment's own line and counts as code
cloc --json --config /tmp/linejudge-empty-file cases/5000-line_splices/5040-line_splice_in_a_comment_with_no_words/input.c
--strip-str-comments
a comment carrying no letter or digit is read like any other: it takes its line break with it and stops there, so the line spliced onto it is joined to the comment's own line and counts as code
cloc --json --config /tmp/linejudge-empty-file cases/5000-line_splices/5040-line_splice_in_a_comment_with_no_words/input.c --strip-str-comments
a comment carrying no letter or digit is read like any other: it takes its line break with it and stops there, so the line spliced onto it is joined to the comment's own line and counts as code
cloc --json --config /tmp/linejudge-empty-file cases/5000-line_splices/5040-line_splice_in_a_comment_with_no_words/input.c --docstring-as-code
codestats cases/5000-line_splices/5040-line_splice_in_a_comment_with_no_words/input.c --output json-compact --include-generated --no-gitignore --hidden --no-config
mezura cases/5000-line_splices/5040-line_splice_in_a_comment_with_no_words/input.c --output json --hide timing --no-default-config --no-local --counting content
mezura cases/5000-line_splices/5040-line_splice_in_a_comment_with_no_words/input.c --output json --hide timing --no-default-config --no-local --counting region
scc --format json --no-config cases/5000-line_splices/5040-line_splice_in_a_comment_with_no_words/input.c
the comment ends at the newline, so the line joined to it is counted as code
tokei --output json cases/5000-line_splices/5040-line_splice_in_a_comment_with_no_words/input.c