← every case · 3000 · escapes and the closing quote

3030-raw_string_ending_in_backslash

a Rust raw string, r#" to "#, whose last character is a backslash. Nothing escapes inside a raw string, so the closer closes it and the string ends where it looks like it ends. A block comment opens after it on the same line, so a counter that leaves the string open hides the opener whether its strings end with the line or run on

read ascloc.defaultcloc.docstring-as-codecodestats.defaultmezura.contentmezura.regionscc.defaulttokei.default
input.rs
1codelet path = r#"C:\ends\in\backslash\"#; /* a real comment
2commentsthat closes on this line */

stringcommentthe tag around another language

What each tool answered

cloc.default ✓ agrees
the rules ask2 lines · 0 blanks · 1 code · 1 comments
it answers2 lines · 0 blanks · 1 code · 1 comments

cloc --json --config /tmp/linejudge-empty-file cases/3000-escapes_and_the_closing_quote/3030-raw_string_ending_in_backslash/input.rs

cloc.default ✓ agrees

--strip-str-comments

the rules ask2 lines · 0 blanks · 1 code · 1 comments
it answers2 lines · 0 blanks · 1 code · 1 comments

cloc --json --config /tmp/linejudge-empty-file cases/3000-escapes_and_the_closing_quote/3030-raw_string_ending_in_backslash/input.rs --strip-str-comments

cloc.docstring-as-code ✓ agrees
the rules ask2 lines · 0 blanks · 1 code · 1 comments
it answers2 lines · 0 blanks · 1 code · 1 comments

cloc --json --config /tmp/linejudge-empty-file cases/3000-escapes_and_the_closing_quote/3030-raw_string_ending_in_backslash/input.rs --docstring-as-code

codestats.default ✓ agrees
the rules ask2 lines · 0 blanks · 1 code · 1 comments
it answers2 lines · 0 blanks · 1 code · 1 comments

codestats cases/3000-escapes_and_the_closing_quote/3030-raw_string_ending_in_backslash/input.rs --output json-compact --include-generated --no-gitignore --hidden --no-config

mezura.content ✓ agrees
the rules ask2 lines · 1 code · 1 comments · 0 extra
it answers2 lines · 1 code · 1 comments · 0 extra

mezura cases/3000-escapes_and_the_closing_quote/3030-raw_string_ending_in_backslash/input.rs --output json --hide timing --no-default-config --no-local --counting content

mezura.region ✓ agrees
the rules ask2 lines · 0 blanks · 1 code · 1 comments
it answers2 lines · 0 blanks · 1 code · 1 comments

mezura cases/3000-escapes_and_the_closing_quote/3030-raw_string_ending_in_backslash/input.rs --output json --hide timing --no-default-config --no-local --counting region

scc.default ✓ agrees
the rules ask2 lines · 0 blanks · 1 code · 1 comments
it answers2 lines · 0 blanks · 1 code · 1 comments

scc --format json --no-config cases/3000-escapes_and_the_closing_quote/3030-raw_string_ending_in_backslash/input.rs

tokei.default ✓ agrees
the rules ask2 lines · 0 blanks · 1 code · 1 comments
it answers2 lines · 0 blanks · 1 code · 1 comments

tokei --output json cases/3000-escapes_and_the_closing_quote/3030-raw_string_ending_in_backslash/input.rs