← 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 | codecodecodecodecodecode | fn js_escape(s: &str) -> String { |
| 2 | codecodecodecodecodecode | s.replace('\\', "\\\\").replace('"', "\\\"") |
| 3 | codecodeextracodecodecode | } |
| 4 | commentscommentscommentscommentscommentscomments | // one |
| 5 | commentscommentscommentscommentscommentscomments | // two |
| 6 | commentscommentscommentscommentscommentscomments | // three |
stringcommentthe tag around another language
cloc --json cases/4000-a_quote_that_opens_nothing/4020-two_char_literals_holding_escapes/input.rs
--strip-str-comments
cloc --json cases/4000-a_quote_that_opens_nothing/4020-two_char_literals_holding_escapes/input.rs --strip-str-comments
cloc --json cases/4000-a_quote_that_opens_nothing/4020-two_char_literals_holding_escapes/input.rs --docstring-as-code
mezura cases/4000-a_quote_that_opens_nothing/4020-two_char_literals_holding_escapes/input.rs --output json --hide timing --no-default-config --no-local --counting content
mezura cases/4000-a_quote_that_opens_nothing/4020-two_char_literals_holding_escapes/input.rs --output json --hide timing --no-default-config --no-local --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