← every case · 2000 · string forms
a line comment symbol inside a template literal is text
| 1 | codecodecodecodecodecodecode | let t = `a template |
| 2 | codecodecodecodecodecodecode | // not a comment, it is inside the template |
| 3 | codecodecodecodecodecodecode | still the template`; |
| 4 | codecodecodecodecodecodecode | let x = 1; |
stringcommentthe tag around another language
a // at the head of a line opens a comment inside a backtick template as readily as outside one, so that line of template text counts as a comment
cloc --json --config /tmp/linejudge-empty-file cases/2000-string_forms/2060-backtick_template_holding_a_comment/input.js
--strip-str-comments
a // at the head of a line opens a comment inside a backtick template as readily as outside one, so that line of template text counts as a comment
cloc --json --config /tmp/linejudge-empty-file cases/2000-string_forms/2060-backtick_template_holding_a_comment/input.js --strip-str-comments
a // at the head of a line opens a comment inside a backtick template as readily as outside one, so that line of template text counts as a comment
cloc --json --config /tmp/linejudge-empty-file cases/2000-string_forms/2060-backtick_template_holding_a_comment/input.js --docstring-as-code
codestats cases/2000-string_forms/2060-backtick_template_holding_a_comment/input.js --output json-compact --include-generated --no-gitignore --hidden --no-config
mezura cases/2000-string_forms/2060-backtick_template_holding_a_comment/input.js --output json --hide timing --no-default-config --no-local --counting content
mezura cases/2000-string_forms/2060-backtick_template_holding_a_comment/input.js --output json --hide timing --no-default-config --no-local --counting region
scc --format json --no-config cases/2000-string_forms/2060-backtick_template_holding_a_comment/input.js
tokei --output json cases/2000-string_forms/2060-backtick_template_holding_a_comment/input.js