← every case · 3000 · escapes and the closing quote
the backtick is what escapes inside PowerShell's double quoted string, so the quote in the middle of the line closes nothing. A block comment opens after the string, so a counter that ends the string at that quote opens another at the last one and hides the comment, whether its strings end with the line or run on
| 1 | codecodecodecodecodecodecode | Write-Host "a `" b" <# a real comment |
| 2 | commentscommentscommentscommentscommentscommentscomments | that closes on this line #> |
| 3 | codecodecodecodecodecodecode | $x = 1 |
stringcommentthe tag around another language
cloc --json --config /tmp/linejudge-empty-file cases/3000-escapes_and_the_closing_quote/3080-backtick_escapes_inside_a_double_quoted_string/input.ps1
--strip-str-comments
cloc --json --config /tmp/linejudge-empty-file cases/3000-escapes_and_the_closing_quote/3080-backtick_escapes_inside_a_double_quoted_string/input.ps1 --strip-str-comments
cloc --json --config /tmp/linejudge-empty-file cases/3000-escapes_and_the_closing_quote/3080-backtick_escapes_inside_a_double_quoted_string/input.ps1 --docstring-as-code
codestats cases/3000-escapes_and_the_closing_quote/3080-backtick_escapes_inside_a_double_quoted_string/input.ps1 --output json-compact --include-generated --no-gitignore --hidden --no-config
mezura cases/3000-escapes_and_the_closing_quote/3080-backtick_escapes_inside_a_double_quoted_string/input.ps1 --output json --hide timing --no-default-config --no-local --counting content
mezura cases/3000-escapes_and_the_closing_quote/3080-backtick_escapes_inside_a_double_quoted_string/input.ps1 --output json --hide timing --no-default-config --no-local --counting region
scc --format json --no-config cases/3000-escapes_and_the_closing_quote/3080-backtick_escapes_inside_a_double_quoted_string/input.ps1
the backtick is no escape to it, so the last quote opens a string that crosses lines
tokei --output json cases/3000-escapes_and_the_closing_quote/3080-backtick_escapes_inside_a_double_quoted_string/input.ps1