← every case · 5000 · line splices
a backslash at the end of a line comment continues it onto the next line in C
| 1 | commentscommentscommentscommentscommentscommentscomments | // this comment continues \ |
| 2 | commentscommentscommentscommentscommentscommentscomments | onto the next line in C |
| 3 | codecodecodecodecodecodecode | int x = 1; |
stringcommentthe tag around another language
a line comment ending in a backslash takes its line break with it and stops there, so the line spliced onto it is joined to the comment's own line and counts as code
cloc --json --config /tmp/linejudge-empty-file cases/5000-line_splices/5030-line_splice_inside_a_comment/input.c
--strip-str-comments
a line comment ending in a backslash takes its line break with it and stops there, so the line spliced onto it is joined to the comment's own line and counts as code
cloc --json --config /tmp/linejudge-empty-file cases/5000-line_splices/5030-line_splice_inside_a_comment/input.c --strip-str-comments
a line comment ending in a backslash takes its line break with it and stops there, so the line spliced onto it is joined to the comment's own line and counts as code
cloc --json --config /tmp/linejudge-empty-file cases/5000-line_splices/5030-line_splice_inside_a_comment/input.c --docstring-as-code
codestats cases/5000-line_splices/5030-line_splice_inside_a_comment/input.c --output json-compact --include-generated --no-gitignore --hidden --no-config
mezura cases/5000-line_splices/5030-line_splice_inside_a_comment/input.c --output json --hide timing --no-default-config --no-local --counting content
mezura cases/5000-line_splices/5030-line_splice_inside_a_comment/input.c --output json --hide timing --no-default-config --no-local --counting region
scc --format json --no-config cases/5000-line_splices/5030-line_splice_inside_a_comment/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/5030-line_splice_inside_a_comment/input.c