← 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 | commentscommentscommentscommentscommentscommentscomments | {- first block |
| 2 | commentscommentscommentscommentscommentscommentscomments | -}{- second block opens where the first closed |
| 3 | commentscommentscommentsextracommentscommentscomments | -} |
| 4 | codecodecodecodecodecodecode | 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 --config /tmp/linejudge-empty-file cases/1000-comments/1210-close_touching_reopen_nesting/input.hs
--strip-str-comments
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 --config /tmp/linejudge-empty-file cases/1000-comments/1210-close_touching_reopen_nesting/input.hs --strip-str-comments
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 --config /tmp/linejudge-empty-file cases/1000-comments/1210-close_touching_reopen_nesting/input.hs --docstring-as-code
codestats cases/1000-comments/1210-close_touching_reopen_nesting/input.hs --output json-compact --include-generated --no-gitignore --hidden --no-config
mezura cases/1000-comments/1210-close_touching_reopen_nesting/input.hs --output json --hide timing --no-default-config --no-local --counting content
mezura cases/1000-comments/1210-close_touching_reopen_nesting/input.hs --output json --hide timing --no-default-config --no-local --counting region
scc --format json --no-config cases/1000-comments/1210-close_touching_reopen_nesting/input.hs
tokei --output json cases/1000-comments/1210-close_touching_reopen_nesting/input.hs