← every case · 1000 · comments
Batch opens a comment with the word REM, and REMOVE is a different word. A counter that looks for those three letters as a substring reads a command as a comment
| 1 | commentscommentscommentscommentscomments | REM a comment |
| 2 | codecodecodecodecode | REMOVE /Q file.txt |
| 3 | codecodecodecodecode | echo done |
stringcommentthe tag around another language
a line whose first word begins with REM is taken as a comment whatever letters follow, so the command counts as one
cloc --json cases/1000-comments/1230-a_comment_word_at_the_head_of_a_longer_word/input.bat
mezura cases/1000-comments/1230-a_comment_word_at_the_head_of_a_longer_word/input.bat --output json --hide timing --counting content
mezura cases/1000-comments/1230-a_comment_word_at_the_head_of_a_longer_word/input.bat --output json --hide timing --counting region
a line whose first word begins with REM is taken as a comment whatever letters follow, so the command counts as one
scc --format json cases/1000-comments/1230-a_comment_word_at_the_head_of_a_longer_word/input.bat
a line whose first word begins with REM is taken as a comment whatever letters follow, so the command counts as one
tokei --output json cases/1000-comments/1230-a_comment_word_at_the_head_of_a_longer_word/input.bat