← every case · 4000 · a quote that opens nothing

4040-escaped_apostrophe_outside_quotes

a backslash before an apostrophe in unquoted shell text, which is how one writes an apostrophe without quoting it. The backslash escapes here and inside double quotes, and is an ordinary character inside single ones

read ascloc.defaultmezura.contentmezura.regionscc.defaulttokei.default
input.sh
1codeecho I\'m done
2comments# a real comment
3comments# a second real comment
4codex=1

stringcommentthe tag around another language

What each tool answered

cloc.default ✓ agrees
the rules ask4 lines · 0 blanks · 2 code · 2 comments
it answers4 lines · 0 blanks · 2 code · 2 comments

cloc --json cases/4000-a_quote_that_opens_nothing/4040-escaped_apostrophe_outside_quotes/input.sh

mezura.content ✓ agrees
the rules ask4 lines · 2 code · 2 comments · 0 extra
it answers4 lines · 2 code · 2 comments · 0 extra

mezura cases/4000-a_quote_that_opens_nothing/4040-escaped_apostrophe_outside_quotes/input.sh --output json --hide timing --counting content

mezura.region ✓ agrees
the rules ask4 lines · 0 blanks · 2 code · 2 comments
it answers4 lines · 0 blanks · 2 code · 2 comments

mezura cases/4000-a_quote_that_opens_nothing/4040-escaped_apostrophe_outside_quotes/input.sh --output json --hide timing --counting region

scc.default ✓ agrees
the rules ask4 lines · 0 blanks · 2 code · 2 comments
it answers4 lines · 0 blanks · 2 code · 2 comments

scc --format json cases/4000-a_quote_that_opens_nothing/4040-escaped_apostrophe_outside_quotes/input.sh

tokei.default ✓ agrees
the rules ask4 lines · 0 blanks · 2 code · 2 comments
it answers4 lines · 0 blanks · 2 code · 2 comments

tokei --output json cases/4000-a_quote_that_opens_nothing/4040-escaped_apostrophe_outside_quotes/input.sh