← every case · 4000 · a quote that opens nothing
a Rust character literal holding a double quote. The quote is the value of the character and opens no string, so the block comment after it on the same line is real. A counter that opens a string at the quote hides that opener whether its strings end with the line or run on, and counts the second line of the comment as code
| 1 | codecodecodecodecodecodecode | let quote: char = '"'; /* a real comment |
| 2 | commentscommentscommentscommentscommentscommentscomments | that closes on this line */ |
| 3 | commentscommentscommentscommentscommentscommentscomments | // a second real comment |
stringcommentthe tag around another language
cloc --json --config /tmp/linejudge-empty-file cases/4000-a_quote_that_opens_nothing/4010-char_literal_holding_a_quote/input.rs
--strip-str-comments
cloc --json --config /tmp/linejudge-empty-file cases/4000-a_quote_that_opens_nothing/4010-char_literal_holding_a_quote/input.rs --strip-str-comments
cloc --json --config /tmp/linejudge-empty-file cases/4000-a_quote_that_opens_nothing/4010-char_literal_holding_a_quote/input.rs --docstring-as-code
codestats cases/4000-a_quote_that_opens_nothing/4010-char_literal_holding_a_quote/input.rs --output json-compact --include-generated --no-gitignore --hidden --no-config
mezura cases/4000-a_quote_that_opens_nothing/4010-char_literal_holding_a_quote/input.rs --output json --hide timing --no-default-config --no-local --counting content
mezura cases/4000-a_quote_that_opens_nothing/4010-char_literal_holding_a_quote/input.rs --output json --hide timing --no-default-config --no-local --counting region
the quote opens a string, so the comment after it and the one under it are counted as code
scc --format json --no-config cases/4000-a_quote_that_opens_nothing/4010-char_literal_holding_a_quote/input.rs
the quote opens a string, so the comment after it and the one under it are counted as code
tokei --output json cases/4000-a_quote_that_opens_nothing/4010-char_literal_holding_a_quote/input.rs