← every case · 2000 · string forms

2050-string_opening_after_block_close

a string beginning at the byte straight after a block comment closes. A counter that skips that byte opens its 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
1comments/* a block
2code*/"a string with no space before it" ; /* a real comment
3commentsthat closes on this line */

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/2000-string_forms/2050-string_opening_after_block_close/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/2000-string_forms/2050-string_opening_after_block_close/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/2000-string_forms/2050-string_opening_after_block_close/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/2000-string_forms/2050-string_opening_after_block_close/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/2000-string_forms/2050-string_opening_after_block_close/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/2000-string_forms/2050-string_opening_after_block_close/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/2000-string_forms/2050-string_opening_after_block_close/input.rs

tokei.default ✗ fails

the code after the closing */ is not seen, so the file is reported as holding no code at all

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

tokei --output json cases/2000-string_forms/2050-string_opening_after_block_close/input.rs