← every case · 5000 · line splices
the splice carries a string only off a line ending in a backslash, and the blank line does not, so the string is over before the comment line
| 1 | codecodecodecodecode | char *s = "abc \ |
| 2 | blanksextracodecodecode | |
| 3 | commentscommentscommentscommentscomments | // a comment once the string has ended"; |
| 4 | codecodecodecodecode | int x = 1; |
stringcommentthe tag around another language
a blank line under a line ending in the language's continuation symbol is read as continuing it and is never blank, so the blank inside the spliced string comes out code
cloc --json cases/5000-line_splices/5020-blank_line_inside_a_spliced_string/input.c
mezura cases/5000-line_splices/5020-blank_line_inside_a_spliced_string/input.c --output json --hide timing --counting content
mezura cases/5000-line_splices/5020-blank_line_inside_a_spliced_string/input.c --output json --hide timing --counting region
the string is carried past the blank line, so the comment line is counted as code
scc --format json cases/5000-line_splices/5020-blank_line_inside_a_spliced_string/input.c
tokei --output json cases/5000-line_splices/5020-blank_line_inside_a_spliced_string/input.c