← every case · 3000 · escapes and the closing quote
a raw string whose last byte is a backslash, written with the same symbol at both ends. A backtick string in Odin escapes nothing, so the second backtick closes it whatever precedes it. The block comment opens after the string 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 holds only //, so a counter that reads no raw string at all counts that line as a comment
| 1 | codecodecodecodecodecodecode | package main |
| 2 | codecodecodecodecodecodecode | Separators :: ` |
| 3 | codecodecodecodecodecodecode | // |
| 4 | codecodecodecodecodecodecode | /\` /* a block comment |
| 5 | commentscommentscommentscommentscommentscommentscomments | that must be seen |
| 6 | commentscommentscommentsextracommentscommentscomments | */ |
| 7 | commentscommentscommentscommentscommentscommentscomments | // a real comment |
stringcommentthe tag around another language
its Odin filters know no backtick string, so the line holding only // inside the raw string is dropped as a comment by its C++ comment filter. --strip-str-comments clears markers between double quotes only
cloc --json --config /tmp/linejudge-empty-file cases/3000-escapes_and_the_closing_quote/3020-multiline_string_ending_in_backslash/input.odin
--strip-str-comments
its Odin filters know no backtick string, so the line holding only // inside the raw string is dropped as a comment by its C++ comment filter. --strip-str-comments clears markers between double quotes only
cloc --json --config /tmp/linejudge-empty-file cases/3000-escapes_and_the_closing_quote/3020-multiline_string_ending_in_backslash/input.odin --strip-str-comments
its Odin filters know no backtick string, so the line holding only // inside the raw string is dropped as a comment by its C++ comment filter. --strip-str-comments clears markers between double quotes only
cloc --json --config /tmp/linejudge-empty-file cases/3000-escapes_and_the_closing_quote/3020-multiline_string_ending_in_backslash/input.odin --docstring-as-code
codestats cases/3000-escapes_and_the_closing_quote/3020-multiline_string_ending_in_backslash/input.odin --output json-compact --include-generated --no-gitignore --hidden --no-config
mezura cases/3000-escapes_and_the_closing_quote/3020-multiline_string_ending_in_backslash/input.odin --output json --hide timing --no-default-config --no-local --counting content
mezura cases/3000-escapes_and_the_closing_quote/3020-multiline_string_ending_in_backslash/input.odin --output json --hide timing --no-default-config --no-local --counting region
its Odin has a double quoted string and no backtick one, so the // on line 3, inside the raw string, is read as a comment. The same /* comes out as code between double quotes and opens a comment between backticks
scc --format json --no-config cases/3000-escapes_and_the_closing_quote/3020-multiline_string_ending_in_backslash/input.odin
its Odin has double and single quoted strings and no backtick one, so the // on line 3, inside the raw string, is read as a comment. The same /* comes out as code between double quotes and opens a comment between backticks
tokei --output json cases/3000-escapes_and_the_closing_quote/3020-multiline_string_ending_in_backslash/input.odin