← every case · 8000 · what the line counts as
a documentation line holding nothing but the /// that marks it, which is how a blank line is put between two paragraphs of documentation. It is a comment to a counter that asks what the line is inside, and neither code nor comment to one that asks what the line says, since it says nothing
| 1 | commentscommentscommentscommentscomments Markdown | /// A documented function. |
| 2 | commentsextracommentscommentscomments Markdown | /// |
| 3 | commentscommentscommentscommentscomments Markdown | /// The paragraph after the empty doc line. |
| 4 | codecodecodecodecode | fn documented() {} |
stringcommentthe tag around another language
cloc --json cases/8000-what_the_line_counts_as/8040-doc_comment_with_no_text/input.rs
mezura cases/8000-what_the_line_counts_as/8040-doc_comment_with_no_text/input.rs --output json --hide timing --counting content
mezura cases/8000-what_the_line_counts_as/8040-doc_comment_with_no_text/input.rs --output json --hide timing --counting region
scc --format json cases/8000-what_the_line_counts_as/8040-doc_comment_with_no_text/input.rs
the bare marker is counted blank, although a blank line inside a '/** */' doc comment of the same language counts as comment, so the answer turns on which of the two doc syntaxes was used
tokei --output json cases/8000-what_the_line_counts_as/8040-doc_comment_with_no_text/input.rs