← every case · 1000 · comments
Vim script writes a line comment and a string with one symbol, the double quote. At the start of a line it opens a comment, and after a command such as echo it opens a string. A counter that reads the quote on the first line as the opening of a string counts that comment as code
| 1 | commentscommentscommentscommentscommentscommentscomments | " a comment |
| 2 | codecodecodecodecodecodecode | echo "text" |
stringcommentthe tag around another language
cloc --json --config /tmp/linejudge-empty-file cases/1000-comments/1235-one_symbol_for_a_line_comment_and_a_string/input.vim
--strip-str-comments
cloc --json --config /tmp/linejudge-empty-file cases/1000-comments/1235-one_symbol_for_a_line_comment_and_a_string/input.vim --strip-str-comments
cloc --json --config /tmp/linejudge-empty-file cases/1000-comments/1235-one_symbol_for_a_line_comment_and_a_string/input.vim --docstring-as-code
codestats cases/1000-comments/1235-one_symbol_for_a_line_comment_and_a_string/input.vim --output json-compact --include-generated --no-gitignore --hidden --no-config
mezura cases/1000-comments/1235-one_symbol_for_a_line_comment_and_a_string/input.vim --output json --hide timing --no-default-config --no-local --counting content
mezura cases/1000-comments/1235-one_symbol_for_a_line_comment_and_a_string/input.vim --output json --hide timing --no-default-config --no-local --counting region
scc --format json --no-config cases/1000-comments/1235-one_symbol_for_a_line_comment_and_a_string/input.vim
the double quote at the head of the comment line opens a string, so that line counts as code. A file holding only that line counts as one line of code
tokei --output json cases/1000-comments/1235-one_symbol_for_a_line_comment_and_a_string/input.vim