← every case · 3000 · escapes and the closing quote
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 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. The string runs over three lines and the middle one begins with //, so a counter that reads no verbatim string at all counts that line as a comment
| 1 | codecodecodecodecodecodecode | let dirs = @"C:\temp\ |
| 2 | codecodecodecodecodecodecode | // still inside the string |
| 3 | codecodecodecodecodecodecode | D:\cache\" (* a real comment |
| 4 | commentscommentscommentscommentscommentscommentscomments | that closes on this line *) |
| 5 | codecodecodecodecodecodecode | let x = 1 |
stringcommentthe tag around another language
its F# filters drop every line that begins with //, so line 2, inside the verbatim string, is counted as a comment
cloc --json --config /tmp/linejudge-empty-file cases/3000-escapes_and_the_closing_quote/3050-verbatim_string_ending_in_a_backslash/input.fs
--strip-str-comments
its F# filters drop every line that begins with //, so line 2, inside the verbatim string, is counted as a comment
cloc --json --config /tmp/linejudge-empty-file cases/3000-escapes_and_the_closing_quote/3050-verbatim_string_ending_in_a_backslash/input.fs --strip-str-comments
its F# filters drop every line that begins with //, so line 2, inside the verbatim string, is counted as a comment
cloc --json --config /tmp/linejudge-empty-file cases/3000-escapes_and_the_closing_quote/3050-verbatim_string_ending_in_a_backslash/input.fs --docstring-as-code
codestats cases/3000-escapes_and_the_closing_quote/3050-verbatim_string_ending_in_a_backslash/input.fs --output json-compact --include-generated --no-gitignore --hidden --no-config
mezura cases/3000-escapes_and_the_closing_quote/3050-verbatim_string_ending_in_a_backslash/input.fs --output json --hide timing --no-default-config --no-local --counting content
mezura cases/3000-escapes_and_the_closing_quote/3050-verbatim_string_ending_in_a_backslash/input.fs --output json --hide timing --no-default-config --no-local --counting region
scc --format json --no-config cases/3000-escapes_and_the_closing_quote/3050-verbatim_string_ending_in_a_backslash/input.fs
tokei --output json cases/3000-escapes_and_the_closing_quote/3050-verbatim_string_ending_in_a_backslash/input.fs