← every case · 1000 · comments
Rust ends a raw string with a quote and a hash, and those two characters appear here in ordinary code with no raw string open. They are a plain string holding a hash and nothing more. A counter that takes them for a closer anyway opens a string at the last quote, which hides the block comment opened after it whether its strings end with the line or run on
| 1 | codecodecodecodecodecodecode | let s = "#"; /* a real comment |
| 2 | commentscommentscommentscommentscommentscommentscomments | that closes on this line */ |
stringcommentthe tag around another language
cloc --json --config /tmp/linejudge-empty-file cases/1000-comments/1130-closer_in_code_with_nothing_open/input.rs
--strip-str-comments
cloc --json --config /tmp/linejudge-empty-file cases/1000-comments/1130-closer_in_code_with_nothing_open/input.rs --strip-str-comments
cloc --json --config /tmp/linejudge-empty-file cases/1000-comments/1130-closer_in_code_with_nothing_open/input.rs --docstring-as-code
codestats cases/1000-comments/1130-closer_in_code_with_nothing_open/input.rs --output json-compact --include-generated --no-gitignore --hidden --no-config
mezura cases/1000-comments/1130-closer_in_code_with_nothing_open/input.rs --output json --hide timing --no-default-config --no-local --counting content
mezura cases/1000-comments/1130-closer_in_code_with_nothing_open/input.rs --output json --hide timing --no-default-config --no-local --counting region
scc --format json --no-config cases/1000-comments/1130-closer_in_code_with_nothing_open/input.rs
tokei --output json cases/1000-comments/1130-closer_in_code_with_nothing_open/input.rs