← every case

mezuragithub.com

measured at v3.0.0 (2026-09-02) · downloaded from crates-io as mezura

What it fails

contentmezura.content.svgdoes not agree on 7 of 83 cases

2120-heredoc_holding_an_apostrophe the apostrophe opens a string and every comment under it is counted as code
2150-delimited_raw_string_names_its_own_closer the plain R"( is declared and this delimited form is not, so the block opener inside the string opens a comment
6020-comment_opener_inside_an_attribute 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
6030-opening_tag_split_over_two_lines the block is not found, so the comment inside it is read with the page's symbols, and HTML has no //
6110-php_block_holding_html_around_it the file is read as php from beginning to end, so the html comment is counted with php's symbols, which do not include it
6120-script_inside_html_inside_php the file is read as php from beginning to end, so neither block is found; the totals survive because php happens to bucket every line the same way the three languages do
7020-regex_holding_a_comment_opener the /* opens a comment and swallows the two lines under it

regionmezura.region.svgdoes not agree on 7 of 83 cases

2120-heredoc_holding_an_apostrophe the apostrophe opens a string and every comment under it is counted as code
2150-delimited_raw_string_names_its_own_closer the plain R"( is declared and this delimited form is not, so the block opener inside the string opens a comment
6020-comment_opener_inside_an_attribute 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
6030-opening_tag_split_over_two_lines the block is not found, so the comment inside it is read with the page's symbols, and HTML has no //
6110-php_block_holding_html_around_it the file is read as php from beginning to end, so the html comment is counted with php's symbols, which do not include it
6120-script_inside_html_inside_php the file is read as php from beginning to end, so neither block is found
7020-regex_holding_a_comment_opener the /* opens a comment and swallows the two lines under it

The rules it is judged by

contenthow it counts when it is run with --counting content

code
words-outside-spans-are-code
take the strings and the comments away and a letter or a digit is still there
code
string-content-is-code
part of the line is inside a string
the line has more on it than spaces and tabs
take the strings and the comments away and no letter or digit is left
comments
words-only-in-a-comment-are-comments
a letter or a digit sits inside one of its comments
take the strings and the comments away and no letter or digit is left
no part of the line is inside a string
extra
blank-is-extra-wherever-it-sits
the line is nothing but spaces and tabs
extra
punctuation-alone-is-extra
the line has more on it than spaces and tabs
no part of the line is inside a string
take the strings and the comments away and no letter or digit is left
no letter or digit sits inside its comments

regionhow it counts when it is run with --counting region

code
anything-outside-spans-is-code
take the strings and the comments away and something is still there
code
a-string-is-code
part of the line is inside a string
comments
a-comment-alone-is-comments
part of the line is inside a comment
take the strings and the comments away and nothing is left but spaces
no part of the line is inside a string
blanks
blank-outside-everything-is-blank
the line is nothing but spaces and tabs
no part of the line is inside a comment
no part of the line is inside a string