← every case · 1000 · comments

1160-two_comment_pairs_of_one_language

D writes block comments two ways, /* */ and /+ +/. Each ends only at its own closer, so the other pair's symbol sitting inside one is text

read ascloc.defaultmezura.contentmezura.regionscc.defaulttokei.default
input.d
1comments/* a plain block holding a +/ token as text */
2comments/+ a nesting block holding a */ token as text +/
3codeint x = 1;

stringcommentthe tag around another language

What each tool answered

cloc.default ✓ agrees
the rules ask3 lines · 0 blanks · 1 code · 2 comments
it answers3 lines · 0 blanks · 1 code · 2 comments

cloc --json cases/1000-comments/1160-two_comment_pairs_of_one_language/input.d

mezura.content ✓ agrees
the rules ask3 lines · 1 code · 2 comments · 0 extra
it answers3 lines · 1 code · 2 comments · 0 extra

mezura cases/1000-comments/1160-two_comment_pairs_of_one_language/input.d --output json --hide timing --counting content

mezura.region ✓ agrees
the rules ask3 lines · 0 blanks · 1 code · 2 comments
it answers3 lines · 0 blanks · 1 code · 2 comments

mezura cases/1000-comments/1160-two_comment_pairs_of_one_language/input.d --output json --hide timing --counting region

scc.default ✓ agrees
the rules ask3 lines · 0 blanks · 1 code · 2 comments
it answers3 lines · 0 blanks · 1 code · 2 comments

scc --format json cases/1000-comments/1160-two_comment_pairs_of_one_language/input.d

tokei.default ✓ agrees
the rules ask3 lines · 0 blanks · 1 code · 2 comments
it answers3 lines · 0 blanks · 1 code · 2 comments

tokei --output json cases/1000-comments/1160-two_comment_pairs_of_one_language/input.d