← every case · 1000 · comments
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
| 1 | commentscommentscommentscommentscomments | {- outer {- inner -} still the outer comment -} |
| 2 | codecodecodecodecode | x = 1 |
stringcommentthe tag around another language
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
cloc --json cases/1000-comments/1200-nested_block_comment_that_nests/input.hs
mezura cases/1000-comments/1200-nested_block_comment_that_nests/input.hs --output json --hide timing --counting content
mezura cases/1000-comments/1200-nested_block_comment_that_nests/input.hs --output json --hide timing --counting region
the inner closer ends the comment although Haskell's pair nests, so the text after it is left standing as code
scc --format json cases/1000-comments/1200-nested_block_comment_that_nests/input.hs
tokei --output json cases/1000-comments/1200-nested_block_comment_that_nests/input.hs