← every case · 6000 · another language inside the file

6010-html_has_no_strings

HTML has no strings of its own, so the apostrophe in the word it's is text like everything around it and opens nothing

read ascloc.defaultmezura.contentmezura.regionscc.defaulttokei.default
input.html
1code<p>it's fine, an apostrophe is not a string</p>
2comments<!-- a real comment -->
3code<p>more markup</p>

stringcommentthe tag around another language

What each tool answered

cloc.default ✓ agrees
the rules ask3 lines · 0 blanks · 2 code · 1 comments
it answers3 lines · 0 blanks · 2 code · 1 comments

cloc --json cases/6000-another_language_inside_the_file/6010-html_has_no_strings/input.html

mezura.content ✓ agrees
the rules ask3 lines · 2 code · 1 comments · 0 extra
it answers3 lines · 2 code · 1 comments · 0 extra

mezura cases/6000-another_language_inside_the_file/6010-html_has_no_strings/input.html --output json --hide timing --counting content

mezura.region ✓ agrees
the rules ask3 lines · 0 blanks · 2 code · 1 comments
it answers3 lines · 0 blanks · 2 code · 1 comments

mezura cases/6000-another_language_inside_the_file/6010-html_has_no_strings/input.html --output json --hide timing --counting region

scc.default ✓ agrees
the rules ask3 lines · 0 blanks · 2 code · 1 comments
it answers3 lines · 0 blanks · 2 code · 1 comments

scc --format json cases/6000-another_language_inside_the_file/6010-html_has_no_strings/input.html

tokei.default ✗ fails

the apostrophe opens a string, so the comment under it is counted as markup

the rules ask3 lines · 0 blanks · 2 code · 1 comments
it answers3 lines · 0 blanks · 3 code · 0 comments

tokei --output json cases/6000-another_language_inside_the_file/6010-html_has_no_strings/input.html