← every case · 6000 · another language inside the file
a script tag whose opening is split over two lines, which is legal HTML. A counter looking for the whole tag on one line never sees it, and reads the JavaScript under it as markup
| 1 | codecodecodecodecode | <script |
| 2 | codecodecodecodecode | type="text/javascript"> |
| 3 | comments JavaScriptcomments JavaScriptcomments JavaScriptcomments JavaScriptcomments JavaScript | // a comment inside the script |
| 4 | code JavaScriptcode JavaScriptcode JavaScriptcode JavaScriptcode JavaScript | var x = 1; |
| 5 | codecodecodecodecode | </script> |
stringcommentthe tag around another language
the file is counted as one language from beginning to end and no script block is separated out however its tag is written, so the js comment inside it counts as markup
cloc --json cases/6000-another_language_inside_the_file/6030-opening_tag_split_over_two_lines/input.html
the block is not found, so the comment inside it is read with the page's symbols, and HTML has no //
mezura cases/6000-another_language_inside_the_file/6030-opening_tag_split_over_two_lines/input.html --output json --hide timing --counting content
the block is not found, so the comment inside it is read with the page's symbols, and HTML has no //
mezura cases/6000-another_language_inside_the_file/6030-opening_tag_split_over_two_lines/input.html --output json --hide timing --counting region
the block is not found, so the comment inside it is read with the page's symbols, and HTML has no //
scc --format json cases/6000-another_language_inside_the_file/6030-opening_tag_split_over_two_lines/input.html
the block is not found, so the comment inside it is read with the page's symbols, and HTML has no //
tokei --output json cases/6000-another_language_inside_the_file/6030-opening_tag_split_over_two_lines/input.html