← every case · 3000 · escapes and the closing quote
an escaped quote does not close the string, so the /* after it opens a real comment. A counter that ends the string at the escaped quote opens another at the last one, which hides the opener whether its strings end with the line or run on, and the second line of the comment comes out as code
| 1 | codecodecodecodecodecodecode | char *s = "a \" b"; /* the escaped quote does not close the string |
| 2 | commentscommentscommentscommentscommentscommentscomments | so this comment is real */ |
| 3 | codecodecodecodecodecodecode | int x = 1; |
stringcommentthe tag around another language
cloc --json --config /tmp/linejudge-empty-file cases/3000-escapes_and_the_closing_quote/3010-escaped_quote_before_comment/input.c
--strip-str-comments
cloc --json --config /tmp/linejudge-empty-file cases/3000-escapes_and_the_closing_quote/3010-escaped_quote_before_comment/input.c --strip-str-comments
cloc --json --config /tmp/linejudge-empty-file cases/3000-escapes_and_the_closing_quote/3010-escaped_quote_before_comment/input.c --docstring-as-code
codestats cases/3000-escapes_and_the_closing_quote/3010-escaped_quote_before_comment/input.c --output json-compact --include-generated --no-gitignore --hidden --no-config
mezura cases/3000-escapes_and_the_closing_quote/3010-escaped_quote_before_comment/input.c --output json --hide timing --no-default-config --no-local --counting content
mezura cases/3000-escapes_and_the_closing_quote/3010-escaped_quote_before_comment/input.c --output json --hide timing --no-default-config --no-local --counting region
scc --format json --no-config cases/3000-escapes_and_the_closing_quote/3010-escaped_quote_before_comment/input.c
tokei --output json cases/3000-escapes_and_the_closing_quote/3010-escaped_quote_before_comment/input.c