← every case · 1000 · comments
a Haskell block comment closes and the next one opens with nothing between the two symbols. The pair nests, so a counter tracking how deep it is must not read the reopener as two levels
| 1 | commentscommentscommentscommentscomments | {- first block |
| 2 | commentscommentscommentscommentscomments | -}{- second block opens where the first closed |
| 3 | commentsextracommentscommentscomments | -} |
| 4 | codecodecodecodecode | x = 1 |
stringcommentthe tag around another language
an opener that comes after a closer on the same line is not acted on, whether the two symbols touch or a space separates them, so the block it reopens is never a comment
cloc --json cases/1000-comments/1210-close_touching_reopen_nesting/input.hs
mezura cases/1000-comments/1210-close_touching_reopen_nesting/input.hs --output json --hide timing --counting content
mezura cases/1000-comments/1210-close_touching_reopen_nesting/input.hs --output json --hide timing --counting region
scc --format json cases/1000-comments/1210-close_touching_reopen_nesting/input.hs
tokei --output json cases/1000-comments/1210-close_touching_reopen_nesting/input.hs