← every case · 6000 · another language inside the file
HTML has no strings of its own, so the apostrophe in the word it's is text like everything around it and opens nothing. A comment opens after it on the same line, so a counter that opens a string at the apostrophe hides the comment, whether its strings end with the line or run on
| 1 | codecodecodecodecodecodecode | <p>it's fine, an apostrophe is not a string</p> <!-- a real comment |
| 2 | commentscommentscommentscommentscommentscommentscomments | that closes on this line --> |
| 3 | codecodecodecodecodecodecode | <p>more markup</p> |
stringcommentthe tag around another language
cloc --json --config /tmp/linejudge-empty-file cases/6000-another_language_inside_the_file/6010-html_has_no_strings/input.html
--strip-str-comments
cloc --json --config /tmp/linejudge-empty-file cases/6000-another_language_inside_the_file/6010-html_has_no_strings/input.html --strip-str-comments
cloc --json --config /tmp/linejudge-empty-file cases/6000-another_language_inside_the_file/6010-html_has_no_strings/input.html --docstring-as-code
codestats cases/6000-another_language_inside_the_file/6010-html_has_no_strings/input.html --output json-compact --include-generated --no-gitignore --hidden --no-config
mezura cases/6000-another_language_inside_the_file/6010-html_has_no_strings/input.html --output json --hide timing --no-default-config --no-local --counting content
mezura cases/6000-another_language_inside_the_file/6010-html_has_no_strings/input.html --output json --hide timing --no-default-config --no-local --counting region
scc --format json --no-config cases/6000-another_language_inside_the_file/6010-html_has_no_strings/input.html
the apostrophe opens a string, so the comment after it is counted as markup
tokei --output json cases/6000-another_language_inside_the_file/6010-html_has_no_strings/input.html