← 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 | codecodecodecodecodecode | char *s = "abc \ |
| 2 | blanksblanksextracodecodecode | |
| 3 | commentscommentscommentscommentscommentscomments | // a comment once the string has ended"; |
| 4 | codecodecodecodecodecode | 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
--strip-str-comments
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 --strip-str-comments
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 --docstring-as-code
mezura cases/5000-line_splices/5020-blank_line_inside_a_spliced_string/input.c --output json --hide timing --no-default-config --no-local --counting content
mezura cases/5000-line_splices/5020-blank_line_inside_a_spliced_string/input.c --output json --hide timing --no-default-config --no-local --counting region
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