← 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 | commentscommentscommentscommentscommentscomments | REM a comment |
| 2 | codecodecodecodecodecode | REMOVE /Q file.txt |
| 3 | codecodecodecodecodecode | 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
--strip-str-comments
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 --strip-str-comments
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 --docstring-as-code
mezura cases/1000-comments/1230-a_comment_word_at_the_head_of_a_longer_word/input.bat --output json --hide timing --no-default-config --no-local --counting content
mezura cases/1000-comments/1230-a_comment_word_at_the_head_of_a_longer_word/input.bat --output json --hide timing --no-default-config --no-local --counting region
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