← every case · 1000 · comments

1200-nested_block_comment_that_nests

Haskell block comments nest, so an inner one opening and closing inside the outer leaves the outer still open, and the text after it is still comment

read ascloc.defaultmezura.contentmezura.regionscc.defaulttokei.default
input.hs
1comments{- outer {- inner -} still the outer comment -}
2codex = 1

stringcommentthe tag around another language

What each tool answered

cloc.default ✗ fails

the inner closer ends the comment although Haskell's pair nests, so what follows it on that line is left standing and the line counts as code

the rules ask2 lines · 0 blanks · 1 code · 1 comments
it answers2 lines · 0 blanks · 2 code · 0 comments

cloc --json cases/1000-comments/1200-nested_block_comment_that_nests/input.hs

mezura.content ✓ agrees
the rules ask2 lines · 1 code · 1 comments · 0 extra
it answers2 lines · 1 code · 1 comments · 0 extra

mezura cases/1000-comments/1200-nested_block_comment_that_nests/input.hs --output json --hide timing --counting content

mezura.region ✓ agrees
the rules ask2 lines · 0 blanks · 1 code · 1 comments
it answers2 lines · 0 blanks · 1 code · 1 comments

mezura cases/1000-comments/1200-nested_block_comment_that_nests/input.hs --output json --hide timing --counting region

scc.default ✗ fails

the inner closer ends the comment although Haskell's pair nests, so the text after it is left standing as code

the rules ask2 lines · 0 blanks · 1 code · 1 comments
it answers2 lines · 0 blanks · 2 code · 0 comments

scc --format json cases/1000-comments/1200-nested_block_comment_that_nests/input.hs

tokei.default ✓ agrees
the rules ask2 lines · 0 blanks · 1 code · 1 comments
it answers2 lines · 0 blanks · 1 code · 1 comments

tokei --output json cases/1000-comments/1200-nested_block_comment_that_nests/input.hs