← every case · 3000 · escapes and the closing quote
the other PowerShell string form escapes nothing inside itself, so the backtick can only speak outside it, where it stops the apostrophe from opening anything
| 1 | codecodecodecodecode | Write-Host `'literal |
| 2 | commentscommentscommentscommentscomments | # a real comment |
| 3 | codecodecodecodecode | $x = 1 |
stringcommentthe tag around another language
cloc --json cases/3000-escapes_and_the_closing_quote/3090-backtick_before_a_single_quoted_string/input.ps1
mezura cases/3000-escapes_and_the_closing_quote/3090-backtick_before_a_single_quoted_string/input.ps1 --output json --hide timing --counting content
mezura cases/3000-escapes_and_the_closing_quote/3090-backtick_before_a_single_quoted_string/input.ps1 --output json --hide timing --counting region
scc --format json cases/3000-escapes_and_the_closing_quote/3090-backtick_before_a_single_quoted_string/input.ps1
the apostrophe opens a string, and that form crosses lines, so everything below it is string
tokei --output json cases/3000-escapes_and_the_closing_quote/3090-backtick_before_a_single_quoted_string/input.ps1