← every case · 7000 · literals with their own delimiters
a double quote inside a JavaScript regular expression, where it is part of the pattern and opens no string. A counter fooled by it opens a string there, which hides the block comment opened after the pattern whether its strings end with the line or run on
| 1 | codecodecodecodecodecodecode | let re = /"/; /* a real comment |
| 2 | commentscommentscommentscommentscommentscommentscomments | that closes on this line */ |
| 3 | codecodecodecodecodecodecode | let x = 1; |
stringcommentthe tag around another language
cloc --json --config /tmp/linejudge-empty-file cases/7000-literals_with_their_own_delimiters/7010-regex_literal_holding_a_quote/input.js
--strip-str-comments
cloc --json --config /tmp/linejudge-empty-file cases/7000-literals_with_their_own_delimiters/7010-regex_literal_holding_a_quote/input.js --strip-str-comments
cloc --json --config /tmp/linejudge-empty-file cases/7000-literals_with_their_own_delimiters/7010-regex_literal_holding_a_quote/input.js --docstring-as-code
codestats cases/7000-literals_with_their_own_delimiters/7010-regex_literal_holding_a_quote/input.js --output json-compact --include-generated --no-gitignore --hidden --no-config
mezura cases/7000-literals_with_their_own_delimiters/7010-regex_literal_holding_a_quote/input.js --output json --hide timing --no-default-config --no-local --counting content
mezura cases/7000-literals_with_their_own_delimiters/7010-regex_literal_holding_a_quote/input.js --output json --hide timing --no-default-config --no-local --counting region
the quote opens a string that runs on, so the comment after it is counted as code
scc --format json --no-config cases/7000-literals_with_their_own_delimiters/7010-regex_literal_holding_a_quote/input.js
the quote opens a string that runs on, so the comment after it is counted as code
tokei --output json cases/7000-literals_with_their_own_delimiters/7010-regex_literal_holding_a_quote/input.js