← every case · 3000 · escapes and the closing quote
a backslash before ${ in a JavaScript template literal makes it text, so no hole opens and the second backtick ends the template. A counter that opens a hole there reads that backtick as a template inside the hole, which runs to the end of the file and hides the block comment after it
| 1 | codecodecodecodecodecodecode | const s = `cost: \${`; /* a real comment |
| 2 | commentscommentscommentscommentscommentscommentscomments | that closes on this line */ |
| 3 | codecodecodecodecodecodecode | let y = 1; |
stringcommentthe tag around another language
cloc --json --config /tmp/linejudge-empty-file cases/3000-escapes_and_the_closing_quote/3017-escaped_hole_opener_inside_a_template/input.js
--strip-str-comments
cloc --json --config /tmp/linejudge-empty-file cases/3000-escapes_and_the_closing_quote/3017-escaped_hole_opener_inside_a_template/input.js --strip-str-comments
cloc --json --config /tmp/linejudge-empty-file cases/3000-escapes_and_the_closing_quote/3017-escaped_hole_opener_inside_a_template/input.js --docstring-as-code
codestats cases/3000-escapes_and_the_closing_quote/3017-escaped_hole_opener_inside_a_template/input.js --output json-compact --include-generated --no-gitignore --hidden --no-config
mezura cases/3000-escapes_and_the_closing_quote/3017-escaped_hole_opener_inside_a_template/input.js --output json --hide timing --no-default-config --no-local --counting content
mezura cases/3000-escapes_and_the_closing_quote/3017-escaped_hole_opener_inside_a_template/input.js --output json --hide timing --no-default-config --no-local --counting region
scc --format json --no-config cases/3000-escapes_and_the_closing_quote/3017-escaped_hole_opener_inside_a_template/input.js
tokei --output json cases/3000-escapes_and_the_closing_quote/3017-escaped_hole_opener_inside_a_template/input.js