← every case · 6000 · another language inside the file
HTML reads its tag names without regard to case, so an upper case SCRIPT opens a script element exactly as a lower case one does
| 1 | codecodecodecodecode | <p>before</p> |
| 2 | codecodecodecodecode | <SCRIPT> |
| 3 | comments JavaScriptcomments JavaScriptcomments JavaScriptcomments JavaScriptcomments JavaScript | // a js comment |
| 4 | code JavaScriptcode JavaScriptcode JavaScriptcode JavaScriptcode JavaScript | var x = 1; |
| 5 | codecodecodecodecode | </SCRIPT> |
| 6 | codecodecodecodecode | <p>after</p> |
stringcommentthe tag around another language
no script block is separated out of the page at all, so the case of the tag never comes up: the same file written in lower case is counted exactly the same way
cloc --json cases/6000-another_language_inside_the_file/6040-script_tag_in_upper_case/input.html
mezura cases/6000-another_language_inside_the_file/6040-script_tag_in_upper_case/input.html --output json --hide timing --counting content
mezura cases/6000-another_language_inside_the_file/6040-script_tag_in_upper_case/input.html --output json --hide timing --counting region
no script block is separated out of any page, whatever case its tag is written in, so the comment inside it counts as markup
scc --format json cases/6000-another_language_inside_the_file/6040-script_tag_in_upper_case/input.html
the tag is not recognised, so the block is not found and the comment inside it counts as markup
tokei --output json cases/6000-another_language_inside_the_file/6040-script_tag_in_upper_case/input.html