← every case · 1000 · comments
four pairs of lines, each holding the same two things in opposite order: code and a comment, a string and a comment, a brace and a comment, a semicolon and a wordless comment. Swapping the two changes neither of them, so the two lines of a pair have to be counted the same way whichever one a counter meets first. The string pair is the one that shows words inside a comment do not outweigh a string on the same line, in either direction
| 1 | codecodecodecodecode | int a = 1; /* note */ |
| 2 | codecodecodecodecode | /* note */ int b = 2; |
| 3 | codecodecodecodecode | "s" /* words */ |
| 4 | codecodecodecodecode | /* words */ "s" |
| 5 | codecommentscodecodecode | } /* words */ |
| 6 | codecommentscodecodecode | /* words */ } |
| 7 | codeextracodecodecode | ; /* ---- */ |
| 8 | codeextracodecodecode | /* ---- */ ; |
stringcommentthe tag around another language
cloc --json cases/1000-comments/1040-pairs_in_either_order/input.c
mezura cases/1000-comments/1040-pairs_in_either_order/input.c --output json --hide timing --counting content
mezura cases/1000-comments/1040-pairs_in_either_order/input.c --output json --hide timing --counting region
scc --format json cases/1000-comments/1040-pairs_in_either_order/input.c
tokei --output json cases/1000-comments/1040-pairs_in_either_order/input.c