← every case · 3000 · escapes and the closing quote

3050-verbatim_string_ending_in_a_backslash

a verbatim string whose last byte is a backslash. In F# the body of @"..." is literal, so the closing quote closes it whatever precedes it, and the line ends where it looks like it ends

read ascloc.defaultmezura.contentmezura.regionscc.defaulttokei.default
input.fs
1codelet dir = @"C:\temp\"
2comments// a real comment
3codelet x = 1

stringcommentthe tag around another language

What each tool answered

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

cloc --json cases/3000-escapes_and_the_closing_quote/3050-verbatim_string_ending_in_a_backslash/input.fs

mezura.content ✓ agrees
the rules ask3 lines · 2 code · 1 comments · 0 extra
it answers3 lines · 2 code · 1 comments · 0 extra

mezura cases/3000-escapes_and_the_closing_quote/3050-verbatim_string_ending_in_a_backslash/input.fs --output json --hide timing --counting content

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

mezura cases/3000-escapes_and_the_closing_quote/3050-verbatim_string_ending_in_a_backslash/input.fs --output json --hide timing --counting region

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

scc --format json cases/3000-escapes_and_the_closing_quote/3050-verbatim_string_ending_in_a_backslash/input.fs

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

tokei --output json cases/3000-escapes_and_the_closing_quote/3050-verbatim_string_ending_in_a_backslash/input.fs