← every case · 5000 · line splices
a backslash at the end of a line comment continues it onto the next line in C
| 1 | commentscommentscommentscommentscomments | // this comment continues \ |
| 2 | commentscommentscommentscommentscomments | onto the next line in C |
| 3 | codecodecodecodecode | int x = 1; |
stringcommentthe tag around another language
a line comment stops at the line break whatever the line ends with, so the line spliced onto it counts as code
cloc --json cases/5000-line_splices/5030-line_splice_inside_a_comment/input.c
mezura cases/5000-line_splices/5030-line_splice_inside_a_comment/input.c --output json --hide timing --counting content
mezura cases/5000-line_splices/5030-line_splice_inside_a_comment/input.c --output json --hide timing --counting region
the comment ends at the newline, so the line joined to it is counted as code
scc --format json 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