← every case · 2000 · string forms
an unmatched quote inside a comment opens nothing. A comment line follows the code, so a counter that opens a string at that quote and lets it run across lines counts that comment as code
| 1 | commentscommentscommentscommentscommentscommentscomments | // an unmatched quote " lives here |
| 2 | codecodecodecodecodecodecode | let x = 1; |
| 3 | commentscommentscommentscommentscommentscommentscomments | // a real comment |
stringcommentthe tag around another language
cloc --json --config /tmp/linejudge-empty-file cases/2000-string_forms/2020-string_symbol_inside_comment/input.js
--strip-str-comments
cloc --json --config /tmp/linejudge-empty-file cases/2000-string_forms/2020-string_symbol_inside_comment/input.js --strip-str-comments
cloc --json --config /tmp/linejudge-empty-file cases/2000-string_forms/2020-string_symbol_inside_comment/input.js --docstring-as-code
codestats cases/2000-string_forms/2020-string_symbol_inside_comment/input.js --output json-compact --include-generated --no-gitignore --hidden --no-config
mezura cases/2000-string_forms/2020-string_symbol_inside_comment/input.js --output json --hide timing --no-default-config --no-local --counting content
mezura cases/2000-string_forms/2020-string_symbol_inside_comment/input.js --output json --hide timing --no-default-config --no-local --counting region
scc --format json --no-config cases/2000-string_forms/2020-string_symbol_inside_comment/input.js
tokei --output json cases/2000-string_forms/2020-string_symbol_inside_comment/input.js