← every case · 4000 · a quote that opens nothing

4050-lifetime_and_apostrophe_in_string

two lone apostrophes on one Rust line: the one that marks a lifetime, and the one in the word don't inside a string. Neither opens anything, and a counter pairing them would swallow the line and open a string at the last quote, which hides the block comment opened after it whether its strings end with the line or run on

read ascloc.defaultcloc.docstring-as-codecodestats.defaultmezura.contentmezura.regionscc.defaulttokei.default
input.rs
1codelet msg: &'static str = "don't panic"; /* a real comment
2commentsthat closes on this line */
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 --config /tmp/linejudge-empty-file cases/4000-a_quote_that_opens_nothing/4050-lifetime_and_apostrophe_in_string/input.rs

cloc.default ✓ agrees

--strip-str-comments

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

cloc --json --config /tmp/linejudge-empty-file cases/4000-a_quote_that_opens_nothing/4050-lifetime_and_apostrophe_in_string/input.rs --strip-str-comments

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

cloc --json --config /tmp/linejudge-empty-file cases/4000-a_quote_that_opens_nothing/4050-lifetime_and_apostrophe_in_string/input.rs --docstring-as-code

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

codestats cases/4000-a_quote_that_opens_nothing/4050-lifetime_and_apostrophe_in_string/input.rs --output json-compact --include-generated --no-gitignore --hidden --no-config

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/4050-lifetime_and_apostrophe_in_string/input.rs --output json --hide timing --no-default-config --no-local --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/4050-lifetime_and_apostrophe_in_string/input.rs --output json --hide timing --no-default-config --no-local --counting region

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

scc --format json --no-config cases/4000-a_quote_that_opens_nothing/4050-lifetime_and_apostrophe_in_string/input.rs

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

tokei --output json cases/4000-a_quote_that_opens_nothing/4050-lifetime_and_apostrophe_in_string/input.rs