← 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. Case 5010 is its other half: a counter that never sees a splice and ends its strings with the line is caught there, and one that never sees a splice and lets its strings run across lines is caught here
| 1 | codecodecodecodecodecodecode | char *s = "abc \ |
| 2 | blanksblanksblanksextracodecodecode | |
| 3 | commentscommentscommentscommentscommentscommentscomments | // a comment once the string has ended"; |
| 4 | codecodecodecodecodecodecode | 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 --config /tmp/linejudge-empty-file 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 --config /tmp/linejudge-empty-file 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 --config /tmp/linejudge-empty-file cases/5000-line_splices/5020-blank_line_inside_a_spliced_string/input.c --docstring-as-code
codestats cases/5000-line_splices/5020-blank_line_inside_a_spliced_string/input.c --output json-compact --include-generated --no-gitignore --hidden --no-config
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 --no-config 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