← every case · 6000 · another language inside the file

6050-script_closer_written_with_a_space

a closing script tag written with a space before its bracket, which is legal HTML and rare. A counter looking for the tag without the space never finds the end of the block. Every count comes out the same whether it found it or not, which is what keeps this one hidden

read ascloc.defaultmezura.contentmezura.regionscc.defaulttokei.default
input.html
1code<script>
2code JavaScriptvar x = 1;
3code</script >
4code<p>hi</p>

stringcommentthe tag around another language

What each tool answered

cloc.default ✗ fails

every number comes out as the rules ask while the javascript line is credited to the page and no second language is named, so nothing in the totals shows the block was never found

the rules ask4 lines · 0 blanks · 4 code · 0 comments · JavaScript 1
it answers4 lines · 0 blanks · 4 code · 0 comments

cloc --json cases/6000-another_language_inside_the_file/6050-script_closer_written_with_a_space/input.html

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

mezura cases/6000-another_language_inside_the_file/6050-script_closer_written_with_a_space/input.html --output json --hide timing --counting content

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

mezura cases/6000-another_language_inside_the_file/6050-script_closer_written_with_a_space/input.html --output json --hide timing --counting region

scc.default ✗ fails

the block is not found, so its line is counted as the page and not as JavaScript

the rules ask4 lines · 0 blanks · 4 code · 0 comments · JavaScript 1
it answers4 lines · 0 blanks · 4 code · 0 comments

scc --format json cases/6000-another_language_inside_the_file/6050-script_closer_written_with_a_space/input.html

tokei.default ✗ fails

the block is not found, so its line is counted as the page and not as JavaScript

the rules ask4 lines · 0 blanks · 4 code · 0 comments · JavaScript 1
it answers4 lines · 0 blanks · 4 code · 0 comments

tokei --output json cases/6000-another_language_inside_the_file/6050-script_closer_written_with_a_space/input.html