← every case · 2000 · string forms

2110-here_string_holding_an_apostrophe

an apostrophe inside a PowerShell here string. The body of a here string is literal and it ends only at a closer sitting at the start of a line, so the apostrophe in the word is a byte

read ascloc.defaultmezura.contentmezura.regionscc.defaulttokei.default
input.ps1
1code$s = @'
2codeit is a here string with an apostrophe: don't
3code'@
4comments# a real comment
5code$x = 1

stringcommentthe tag around another language

What each tool answered

cloc.default ✓ agrees
the rules ask5 lines · 0 blanks · 4 code · 1 comments
it answers5 lines · 0 blanks · 4 code · 1 comments

cloc --json cases/2000-string_forms/2110-here_string_holding_an_apostrophe/input.ps1

mezura.content ✓ agrees
the rules ask5 lines · 4 code · 1 comments · 0 extra
it answers5 lines · 4 code · 1 comments · 0 extra

mezura cases/2000-string_forms/2110-here_string_holding_an_apostrophe/input.ps1 --output json --hide timing --counting content

mezura.region ✓ agrees
the rules ask5 lines · 0 blanks · 4 code · 1 comments
it answers5 lines · 0 blanks · 4 code · 1 comments

mezura cases/2000-string_forms/2110-here_string_holding_an_apostrophe/input.ps1 --output json --hide timing --counting region

scc.default ✓ agrees
the rules ask5 lines · 0 blanks · 4 code · 1 comments
it answers5 lines · 0 blanks · 4 code · 1 comments

scc --format json cases/2000-string_forms/2110-here_string_holding_an_apostrophe/input.ps1

tokei.default ✓ agrees
the rules ask5 lines · 0 blanks · 4 code · 1 comments
it answers5 lines · 0 blanks · 4 code · 1 comments

tokei --output json cases/2000-string_forms/2110-here_string_holding_an_apostrophe/input.ps1