← every case · 3000 · escapes and the closing quote
in an ordinary C# interpolated string, one with no @, a backslash before a quote escapes it, as in any other C# string with no @. A counter that ignores the escape there ends the string at that quote, and the real closing quote then opens a new string that hides the block comment after it
| 1 | codecodecodecodecodecodecode | var s = $"a \" {x} b"; /* a real comment |
| 2 | commentscommentscommentscommentscommentscommentscomments | that closes on this line */ |
| 3 | codecodecodecodecodecodecode | int y = 1; |
stringcommentthe tag around another language
cloc --json --config /tmp/linejudge-empty-file cases/3000-escapes_and_the_closing_quote/3015-escaped_quote_inside_an_interpolated_string/input.cs
--strip-str-comments
cloc --json --config /tmp/linejudge-empty-file cases/3000-escapes_and_the_closing_quote/3015-escaped_quote_inside_an_interpolated_string/input.cs --strip-str-comments
cloc --json --config /tmp/linejudge-empty-file cases/3000-escapes_and_the_closing_quote/3015-escaped_quote_inside_an_interpolated_string/input.cs --docstring-as-code
codestats cases/3000-escapes_and_the_closing_quote/3015-escaped_quote_inside_an_interpolated_string/input.cs --output json-compact --include-generated --no-gitignore --hidden --no-config
mezura cases/3000-escapes_and_the_closing_quote/3015-escaped_quote_inside_an_interpolated_string/input.cs --output json --hide timing --no-default-config --no-local --counting content
mezura cases/3000-escapes_and_the_closing_quote/3015-escaped_quote_inside_an_interpolated_string/input.cs --output json --hide timing --no-default-config --no-local --counting region
scc --format json --no-config cases/3000-escapes_and_the_closing_quote/3015-escaped_quote_inside_an_interpolated_string/input.cs
tokei --output json cases/3000-escapes_and_the_closing_quote/3015-escaped_quote_inside_an_interpolated_string/input.cs