← every case · 1000 · comments
Odin block comments nest, so the first closer ends only the inner one and the text under it is still inside the outer block
| 1 | codecodecodecodecode | package main |
| 2 | commentscommentscommentscommentscomments | /* outer |
| 3 | commentscommentscommentscommentscomments | /* inner */ |
| 4 | commentscommentscommentscommentscomments | still a comment |
| 5 | commentsextracommentscommentscomments | */ |
| 6 | codecodecodecodecode | x := 1 |
stringcommentthe tag around another language
the inner closer ends the comment although Odin's pair nests, so the lines under it up to and including the outer closer are left as code
cloc --json cases/1000-comments/1220-nested_block_comment_in_odin/input.odin
mezura cases/1000-comments/1220-nested_block_comment_in_odin/input.odin --output json --hide timing --counting content
mezura cases/1000-comments/1220-nested_block_comment_in_odin/input.odin --output json --hide timing --counting region
the block is ended at the inner closer, so the two lines after it are counted as code
scc --format json cases/1000-comments/1220-nested_block_comment_in_odin/input.odin
the block is ended at the inner closer, so the two lines after it are counted as code
tokei --output json cases/1000-comments/1220-nested_block_comment_in_odin/input.odin