← every case · 4000 · a quote that opens nothing
two character literals on one line, one holding an escaped backslash and one holding a quote. Ordinary Rust that any escaping routine is written with, and not a line contrived for this suite
| 1 | codecodecodecodecode | fn js_escape(s: &str) -> String { |
| 2 | codecodecodecodecode | s.replace('\\', "\\\\").replace('"', "\\\"") |
| 3 | codeextracodecodecode | } |
| 4 | commentscommentscommentscommentscomments | // one |
| 5 | commentscommentscommentscommentscomments | // two |
| 6 | commentscommentscommentscommentscomments | // three |
stringcommentthe tag around another language
cloc --json cases/4000-a_quote_that_opens_nothing/4020-two_char_literals_holding_escapes/input.rs
mezura cases/4000-a_quote_that_opens_nothing/4020-two_char_literals_holding_escapes/input.rs --output json --hide timing --counting content
mezura cases/4000-a_quote_that_opens_nothing/4020-two_char_literals_holding_escapes/input.rs --output json --hide timing --counting region
every comment under the line is lost
scc --format json cases/4000-a_quote_that_opens_nothing/4020-two_char_literals_holding_escapes/input.rs
every comment under the line is lost
tokei --output json cases/4000-a_quote_that_opens_nothing/4020-two_char_literals_holding_escapes/input.rs