← every case · 7000 · literals with their own delimiters
a slash after a name or a number is a division in JavaScript and opens no regular expression. A counter that opens a pattern there ends it at the slash inside the string, then takes that string's closing quote for an open string, which hides the block comment after it
| 1 | codecodecodecodecodecodecode | const r = a / b + "/"; /* a real comment |
| 2 | commentscommentscommentscommentscommentscommentscomments | that closes on this line */ |
| 3 | codecodecodecodecodecodecode | let y = 1; |
stringcommentthe tag around another language
cloc --json --config /tmp/linejudge-empty-file cases/7000-literals_with_their_own_delimiters/7040-slash_after_a_name_divides/input.js
--strip-str-comments
cloc --json --config /tmp/linejudge-empty-file cases/7000-literals_with_their_own_delimiters/7040-slash_after_a_name_divides/input.js --strip-str-comments
cloc --json --config /tmp/linejudge-empty-file cases/7000-literals_with_their_own_delimiters/7040-slash_after_a_name_divides/input.js --docstring-as-code
codestats cases/7000-literals_with_their_own_delimiters/7040-slash_after_a_name_divides/input.js --output json-compact --include-generated --no-gitignore --hidden --no-config
mezura cases/7000-literals_with_their_own_delimiters/7040-slash_after_a_name_divides/input.js --output json --hide timing --no-default-config --no-local --counting content
mezura cases/7000-literals_with_their_own_delimiters/7040-slash_after_a_name_divides/input.js --output json --hide timing --no-default-config --no-local --counting region
scc --format json --no-config cases/7000-literals_with_their_own_delimiters/7040-slash_after_a_name_divides/input.js
tokei --output json cases/7000-literals_with_their_own_delimiters/7040-slash_after_a_name_divides/input.js