← every case · 6000 · another language inside the file
a comment opener written inside a quoted attribute value, where HTML reads it as text. Nothing closes it further down, so a counter that opened a comment there never ends one
| 1 | codecodecodecodecode | <div title="<!-- this is text in an attribute"> |
| 2 | codecodecodecodecode | <p>first</p> |
| 3 | codecodecodecodecode | <p>second</p> |
stringcommentthe tag around another language
a comment opener inside a quoted attribute value opens a comment all the same, and nothing below closes it, so both lines under it count as comments
cloc --json cases/6000-another_language_inside_the_file/6020-comment_opener_inside_an_attribute/input.html
HTML declares no string symbols, on purpose, because its quotes hold attributes and its text is full of apostrophes. The price is this one: a quoted opener cannot be seen
mezura cases/6000-another_language_inside_the_file/6020-comment_opener_inside_an_attribute/input.html --output json --hide timing --counting content
HTML declares no string symbols, on purpose, because its quotes hold attributes and its text is full of apostrophes. The price is this one: a quoted opener cannot be seen
mezura cases/6000-another_language_inside_the_file/6020-comment_opener_inside_an_attribute/input.html --output json --hide timing --counting region
scc --format json cases/6000-another_language_inside_the_file/6020-comment_opener_inside_an_attribute/input.html
tokei --output json cases/6000-another_language_inside_the_file/6020-comment_opener_inside_an_attribute/input.html