← every case · 7000 · literals with their own delimiters

7040-slash_after_a_name_divides

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

read ascloc.defaultcloc.docstring-as-codecodestats.defaultmezura.contentmezura.regionscc.defaulttokei.default
input.js
1codeconst r = a / b + "/"; /* a real comment
2commentsthat closes on this line */
3codelet y = 1;

stringcommentthe tag around another language

What each tool answered

cloc.default ✓ agrees
the rules ask3 lines · 0 blanks · 2 code · 1 comments
it answers3 lines · 0 blanks · 2 code · 1 comments

cloc --json --config /tmp/linejudge-empty-file cases/7000-literals_with_their_own_delimiters/7040-slash_after_a_name_divides/input.js

cloc.default ✓ agrees

--strip-str-comments

the rules ask3 lines · 0 blanks · 2 code · 1 comments
it answers3 lines · 0 blanks · 2 code · 1 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.docstring-as-code ✓ agrees
the rules ask3 lines · 0 blanks · 2 code · 1 comments
it answers3 lines · 0 blanks · 2 code · 1 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.default ✓ agrees
the rules ask3 lines · 0 blanks · 2 code · 1 comments
it answers3 lines · 0 blanks · 2 code · 1 comments

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.content ✓ agrees
the rules ask3 lines · 2 code · 1 comments · 0 extra
it answers3 lines · 2 code · 1 comments · 0 extra

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.region ✓ agrees
the rules ask3 lines · 0 blanks · 2 code · 1 comments
it answers3 lines · 0 blanks · 2 code · 1 comments

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.default ✓ agrees
the rules ask3 lines · 0 blanks · 2 code · 1 comments
it answers3 lines · 0 blanks · 2 code · 1 comments

scc --format json --no-config cases/7000-literals_with_their_own_delimiters/7040-slash_after_a_name_divides/input.js

tokei.default ✓ agrees
the rules ask3 lines · 0 blanks · 2 code · 1 comments
it answers3 lines · 0 blanks · 2 code · 1 comments

tokei --output json cases/7000-literals_with_their_own_delimiters/7040-slash_after_a_name_divides/input.js