← every case · 7000 · literals with their own delimiters
a block comment opener inside a JavaScript regular expression. Knowing that the slash begins a pattern and not a division takes reading what came before it, which is more than any counter here attempts. What each of them does with the opener after that is its own
| 1 | codecodecodecodecode | let re = /a[/*]b/; |
| 2 | codecodecodecodecode | let x = 1; |
| 3 | codecodecodecodecode | let y = 2; |
stringcommentthe tag around another language
cloc --json cases/7000-literals_with_their_own_delimiters/7020-regex_holding_a_comment_opener/input.js
the /* opens a comment and swallows the two lines under it
mezura cases/7000-literals_with_their_own_delimiters/7020-regex_holding_a_comment_opener/input.js --output json --hide timing --counting content
the /* opens a comment and swallows the two lines under it
mezura cases/7000-literals_with_their_own_delimiters/7020-regex_holding_a_comment_opener/input.js --output json --hide timing --counting region
the /* opens a comment and swallows the two lines under it
scc --format json cases/7000-literals_with_their_own_delimiters/7020-regex_holding_a_comment_opener/input.js
the /* opens a comment and swallows the two lines under it
tokei --output json cases/7000-literals_with_their_own_delimiters/7020-regex_holding_a_comment_opener/input.js