← every case · 5000 · line splices
a line holding real code ends in a spliced line comment, so the next line belongs to that comment in C
| 1 | codecodecodecodecodecode | int a = 1; // comment \ |
| 2 | commentscommentscommentscommentscommentscomments | joined to the comment |
| 3 | codecodecodecodecodecode | int x = 1; |
stringcommentthe tag around another language
cloc --json cases/5000-line_splices/5060-code_then_a_spliced_line_comment/input.c
--strip-str-comments
cloc --json cases/5000-line_splices/5060-code_then_a_spliced_line_comment/input.c --strip-str-comments
cloc --json cases/5000-line_splices/5060-code_then_a_spliced_line_comment/input.c --docstring-as-code
mezura cases/5000-line_splices/5060-code_then_a_spliced_line_comment/input.c --output json --hide timing --no-default-config --no-local --counting content
mezura cases/5000-line_splices/5060-code_then_a_spliced_line_comment/input.c --output json --hide timing --no-default-config --no-local --counting region
scc --format json cases/5000-line_splices/5060-code_then_a_spliced_line_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/5060-code_then_a_spliced_line_comment/input.c