← every case · 4000 · a quote that opens nothing

4080-primed_identifier_and_apostrophe

F# lets a name end in an apostrophe, so s' is one name. The apostrophe in the word it's, inside the string on the same line, is the other one. Neither may pair with the other: a counter that pairs them opens a string at the closing quote, which hides the block comment opened after it whether its strings end with the line or run on. The string runs over three lines and the middle one begins with //, so a counter that reads no string at all counts that line as a comment

read ascloc.defaultcloc.docstring-as-codecodestats.defaultmezura.contentmezura.regionscc.defaulttokei.default
input.fs
1codelet s' = "it's fine
2code// and this line is inside it too
3codeand so is this one" (* a real comment
4commentsthat closes on this line *)
5codelet t' = 1

stringcommentthe tag around another language

What each tool answered

cloc.default ✗ fails

its F# filters drop every line that begins with //, so line 2, inside the string opened on line 1, is counted as a comment

the rules ask5 lines · 0 blanks · 4 code · 1 comments
it answers5 lines · 0 blanks · 3 code · 2 comments

cloc --json --config /tmp/linejudge-empty-file cases/4000-a_quote_that_opens_nothing/4080-primed_identifier_and_apostrophe/input.fs

cloc.default ✗ fails

--strip-str-comments

its F# filters drop every line that begins with //, so line 2, inside the string opened on line 1, is counted as a comment

the rules ask5 lines · 0 blanks · 4 code · 1 comments
it answers5 lines · 0 blanks · 3 code · 2 comments

cloc --json --config /tmp/linejudge-empty-file cases/4000-a_quote_that_opens_nothing/4080-primed_identifier_and_apostrophe/input.fs --strip-str-comments

cloc.docstring-as-code ✗ fails

its F# filters drop every line that begins with //, so line 2, inside the string opened on line 1, is counted as a comment

the rules ask5 lines · 0 blanks · 4 code · 1 comments
it answers5 lines · 0 blanks · 3 code · 2 comments

cloc --json --config /tmp/linejudge-empty-file cases/4000-a_quote_that_opens_nothing/4080-primed_identifier_and_apostrophe/input.fs --docstring-as-code

codestats.default ✓ agrees
the rules ask5 lines · 0 blanks · 4 code · 1 comments
it answers5 lines · 0 blanks · 4 code · 1 comments

codestats cases/4000-a_quote_that_opens_nothing/4080-primed_identifier_and_apostrophe/input.fs --output json-compact --include-generated --no-gitignore --hidden --no-config

mezura.content ✓ agrees
the rules ask5 lines · 4 code · 1 comments · 0 extra
it answers5 lines · 4 code · 1 comments · 0 extra

mezura cases/4000-a_quote_that_opens_nothing/4080-primed_identifier_and_apostrophe/input.fs --output json --hide timing --no-default-config --no-local --counting content

mezura.region ✓ agrees
the rules ask5 lines · 0 blanks · 4 code · 1 comments
it answers5 lines · 0 blanks · 4 code · 1 comments

mezura cases/4000-a_quote_that_opens_nothing/4080-primed_identifier_and_apostrophe/input.fs --output json --hide timing --no-default-config --no-local --counting region

scc.default ✓ agrees
the rules ask5 lines · 0 blanks · 4 code · 1 comments
it answers5 lines · 0 blanks · 4 code · 1 comments

scc --format json --no-config cases/4000-a_quote_that_opens_nothing/4080-primed_identifier_and_apostrophe/input.fs

tokei.default ✓ agrees
the rules ask5 lines · 0 blanks · 4 code · 1 comments
it answers5 lines · 0 blanks · 4 code · 1 comments

tokei --output json cases/4000-a_quote_that_opens_nothing/4080-primed_identifier_and_apostrophe/input.fs