← every case · 5000 · line splices
the splice of case 5030 on a comment line holding no letter or digit at all, which is how a decorative rule is written. What a line says has no bearing on whether it continues
| 1 | codecodecodecodecodecode | int a = 1; |
| 2 | commentscommentsextracommentscommentscomments | // ---- \ |
| 3 | commentscommentscommentscommentscommentscomments | int b = 2; |
| 4 | codecodecodecodecodecode | int c = 3; |
stringcommentthe tag around another language
a comment carrying no letter or digit is read like any other and still stops at the line break, so the line spliced onto it counts as code
cloc --json cases/5000-line_splices/5040-line_splice_in_a_comment_with_no_words/input.c
--strip-str-comments
a comment carrying no letter or digit is read like any other and still stops at the line break, so the line spliced onto it counts as code
cloc --json cases/5000-line_splices/5040-line_splice_in_a_comment_with_no_words/input.c --strip-str-comments
a comment carrying no letter or digit is read like any other and still stops at the line break, so the line spliced onto it counts as code
cloc --json cases/5000-line_splices/5040-line_splice_in_a_comment_with_no_words/input.c --docstring-as-code
mezura cases/5000-line_splices/5040-line_splice_in_a_comment_with_no_words/input.c --output json --hide timing --no-default-config --no-local --counting content
mezura cases/5000-line_splices/5040-line_splice_in_a_comment_with_no_words/input.c --output json --hide timing --no-default-config --no-local --counting region
scc --format json cases/5000-line_splices/5040-line_splice_in_a_comment_with_no_words/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/5040-line_splice_in_a_comment_with_no_words/input.c