← 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 | codecodecodecodecodecode | Write-Host `'literal |
| 2 | commentscommentscommentscommentscommentscomments | # a real comment |
| 3 | codecodecodecodecodecode | $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
--strip-str-comments
cloc --json cases/3000-escapes_and_the_closing_quote/3090-backtick_before_a_single_quoted_string/input.ps1 --strip-str-comments
cloc --json cases/3000-escapes_and_the_closing_quote/3090-backtick_before_a_single_quoted_string/input.ps1 --docstring-as-code
mezura cases/3000-escapes_and_the_closing_quote/3090-backtick_before_a_single_quoted_string/input.ps1 --output json --hide timing --no-default-config --no-local --counting content
mezura cases/3000-escapes_and_the_closing_quote/3090-backtick_before_a_single_quoted_string/input.ps1 --output json --hide timing --no-default-config --no-local --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