← every case · 3000 · escapes and the closing quote

3010-escaped_quote_before_comment

an escaped quote does not close the string, so the // after it is a real comment and not text inside it

read ascloc.defaultmezura.contentmezura.regionscc.defaulttokei.default
input.c
1codechar *s = "a \" b"; // the escaped quote does not close the string
2codeint x = 1;

stringcommentthe tag around another language

What each tool answered

cloc.default ✓ agrees
the rules ask2 lines · 0 blanks · 2 code · 0 comments
it answers2 lines · 0 blanks · 2 code · 0 comments

cloc --json cases/3000-escapes_and_the_closing_quote/3010-escaped_quote_before_comment/input.c

mezura.content ✓ agrees
the rules ask2 lines · 2 code · 0 comments · 0 extra
it answers2 lines · 2 code · 0 comments · 0 extra

mezura cases/3000-escapes_and_the_closing_quote/3010-escaped_quote_before_comment/input.c --output json --hide timing --counting content

mezura.region ✓ agrees
the rules ask2 lines · 0 blanks · 2 code · 0 comments
it answers2 lines · 0 blanks · 2 code · 0 comments

mezura cases/3000-escapes_and_the_closing_quote/3010-escaped_quote_before_comment/input.c --output json --hide timing --counting region

scc.default ✓ agrees
the rules ask2 lines · 0 blanks · 2 code · 0 comments
it answers2 lines · 0 blanks · 2 code · 0 comments

scc --format json cases/3000-escapes_and_the_closing_quote/3010-escaped_quote_before_comment/input.c

tokei.default ✓ agrees
the rules ask2 lines · 0 blanks · 2 code · 0 comments
it answers2 lines · 0 blanks · 2 code · 0 comments

tokei --output json cases/3000-escapes_and_the_closing_quote/3010-escaped_quote_before_comment/input.c