← every case · 6000 · another language inside the file

6070-script_opener_that_never_closes

the text of a script tag written inside a paragraph, with no closing tag anywhere after it. Nothing marks an opener as a tag rather than the same word written out, so a block that never closes is text and the rest of the file belongs to the page

read ascloc.defaultmezura.contentmezura.regionscc.defaulttokei.default
input.html
1code<p>a page can write <script> as text</p>
2code<p>and everything under it is still the page</p>

stringcommentthe tag around another language

What each tool answered

cloc.default ✓ agrees
the rules ask2 lines · 0 blanks · 2 code · 0 comments
it answers2 lines · 0 blanks · 2 code · 0 comments

cloc --json cases/6000-another_language_inside_the_file/6070-script_opener_that_never_closes/input.html

mezura.content ✓ agrees
the rules ask2 lines · 2 code · 0 comments · 0 extra
it answers2 lines · 2 code · 0 comments · 0 extra

mezura cases/6000-another_language_inside_the_file/6070-script_opener_that_never_closes/input.html --output json --hide timing --counting content

mezura.region ✓ agrees
the rules ask2 lines · 0 blanks · 2 code · 0 comments
it answers2 lines · 0 blanks · 2 code · 0 comments

mezura cases/6000-another_language_inside_the_file/6070-script_opener_that_never_closes/input.html --output json --hide timing --counting region

scc.default ✓ agrees
the rules ask2 lines · 0 blanks · 2 code · 0 comments
it answers2 lines · 0 blanks · 2 code · 0 comments

scc --format json cases/6000-another_language_inside_the_file/6070-script_opener_that_never_closes/input.html

tokei.default ✓ agrees
the rules ask2 lines · 0 blanks · 2 code · 0 comments
it answers2 lines · 0 blanks · 2 code · 0 comments

tokei --output json cases/6000-another_language_inside_the_file/6070-script_opener_that_never_closes/input.html