← 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
| 1 | codecodecodecodecode | Write-Host "a `" b" |
| 2 | commentscommentscommentscommentscomments | # a real comment |
| 3 | codecodecodecodecode | $x = 1 |
stringcommentthe tag around another language
cloc --json cases/3000-escapes_and_the_closing_quote/3080-backtick_escapes_inside_a_double_quoted_string/input.ps1
mezura cases/3000-escapes_and_the_closing_quote/3080-backtick_escapes_inside_a_double_quoted_string/input.ps1 --output json --hide timing --counting content
mezura cases/3000-escapes_and_the_closing_quote/3080-backtick_escapes_inside_a_double_quoted_string/input.ps1 --output json --hide timing --counting region
the backtick is no escape to it, so the last quote opens a string that crosses lines
scc --format json 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