← 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 | codecodecodecodecode | int a = 1; |
| 2 | commentsextracommentscommentscomments | // ---- \ |
| 3 | commentscommentscommentscommentscomments | int b = 2; |
| 4 | codecodecodecodecode | int c = 3; |
stringcommentthe tag around another language
a comment carrying no letter or digit is read like any other and still stops at the line break, so the line spliced onto it counts as code
cloc --json cases/5000-line_splices/5040-line_splice_in_a_comment_with_no_words/input.c
mezura cases/5000-line_splices/5040-line_splice_in_a_comment_with_no_words/input.c --output json --hide timing --counting content
mezura cases/5000-line_splices/5040-line_splice_in_a_comment_with_no_words/input.c --output json --hide timing --counting region
the comment ends at the newline, so the line joined to it is counted as code
scc --format json 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