← every case · 3000 · escapes and the closing quote

3020-multiline_string_ending_in_backslash

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

read ascloc.defaultmezura.contentmezura.regionscc.defaulttokei.default
input.odin
1codepackage main
2codeSeparators :: `/\`
3comments/*
4commentsa block comment that must be seen
5comments*/
6comments// a real comment

stringcommentthe tag around another language

What each tool answered

cloc.default ✓ agrees
the rules ask6 lines · 0 blanks · 2 code · 4 comments
it answers6 lines · 0 blanks · 2 code · 4 comments

cloc --json cases/3000-escapes_and_the_closing_quote/3020-multiline_string_ending_in_backslash/input.odin

mezura.content ✓ agrees
the rules ask6 lines · 2 code · 2 comments · 2 extra
it answers6 lines · 2 code · 2 comments · 2 extra

mezura cases/3000-escapes_and_the_closing_quote/3020-multiline_string_ending_in_backslash/input.odin --output json --hide timing --counting content

mezura.region ✓ agrees
the rules ask6 lines · 0 blanks · 2 code · 4 comments
it answers6 lines · 0 blanks · 2 code · 4 comments

mezura cases/3000-escapes_and_the_closing_quote/3020-multiline_string_ending_in_backslash/input.odin --output json --hide timing --counting region

scc.default ✓ agrees
the rules ask6 lines · 0 blanks · 2 code · 4 comments
it answers6 lines · 0 blanks · 2 code · 4 comments

scc --format json cases/3000-escapes_and_the_closing_quote/3020-multiline_string_ending_in_backslash/input.odin

tokei.default ✓ agrees
the rules ask6 lines · 0 blanks · 2 code · 4 comments
it answers6 lines · 0 blanks · 2 code · 4 comments

tokei --output json cases/3000-escapes_and_the_closing_quote/3020-multiline_string_ending_in_backslash/input.odin