← every case · 4000 · a quote that opens nothing

4010-char_literal_holding_a_quote

a Rust character literal holding a double quote. The quote is the value of the character and opens no string, so the comment lines under it are comments

read ascloc.defaultmezura.contentmezura.regionscc.defaulttokei.default
input.rs
1codelet quote: char = '"';
2comments// a real comment
3comments// a second real comment

stringcommentthe tag around another language

What each tool answered

cloc.default ✓ agrees
the rules ask3 lines · 0 blanks · 1 code · 2 comments
it answers3 lines · 0 blanks · 1 code · 2 comments

cloc --json cases/4000-a_quote_that_opens_nothing/4010-char_literal_holding_a_quote/input.rs

mezura.content ✓ agrees
the rules ask3 lines · 1 code · 2 comments · 0 extra
it answers3 lines · 1 code · 2 comments · 0 extra

mezura cases/4000-a_quote_that_opens_nothing/4010-char_literal_holding_a_quote/input.rs --output json --hide timing --counting content

mezura.region ✓ agrees
the rules ask3 lines · 0 blanks · 1 code · 2 comments
it answers3 lines · 0 blanks · 1 code · 2 comments

mezura cases/4000-a_quote_that_opens_nothing/4010-char_literal_holding_a_quote/input.rs --output json --hide timing --counting region

scc.default ✗ fails

the quote opens a string, so both comments under it are counted as code

the rules ask3 lines · 0 blanks · 1 code · 2 comments
it answers3 lines · 0 blanks · 3 code · 0 comments

scc --format json cases/4000-a_quote_that_opens_nothing/4010-char_literal_holding_a_quote/input.rs

tokei.default ✗ fails

the quote opens a string, so both comments under it are counted as code

the rules ask3 lines · 0 blanks · 1 code · 2 comments
it answers3 lines · 0 blanks · 3 code · 0 comments

tokei --output json cases/4000-a_quote_that_opens_nothing/4010-char_literal_holding_a_quote/input.rs