← every case · 5000 · line splices
a backslash at the end of a line comment carries it onto the blank line under it, so a line holding nothing at all is still inside the comment. Blank to a counter that asks what the line itself says, comment to one that asks what it is inside, and a counter that never sees the splice does not face the question
| 1 | commentscommentscommentscommentscomments | // the blank line below is still this comment \ |
| 2 | blanksextracommentscommentscomments | |
| 3 | codecodecodecodecode | int x = 1; |
stringcommentthe tag around another language
the blank line under the spliced comment is read as continuing it and is never blank, so it comes out comment where its own blanks-first rule says a line of nothing is blank
cloc --json cases/5000-line_splices/5070-blank_line_inside_a_spliced_comment/input.c
mezura cases/5000-line_splices/5070-blank_line_inside_a_spliced_comment/input.c --output json --hide timing --counting content
mezura cases/5000-line_splices/5070-blank_line_inside_a_spliced_comment/input.c --output json --hide timing --counting region
the comment ends at the newline, so the empty line joined to it is counted as blank
scc --format json cases/5000-line_splices/5070-blank_line_inside_a_spliced_comment/input.c
the comment ends at the newline, so the empty line joined to it is counted as blank
tokei --output json cases/5000-line_splices/5070-blank_line_inside_a_spliced_comment/input.c