← every case · 4000 · a quote that opens nothing

4030-character_written_with_a_backslash

Clojure writes a character as a backslash and the character itself, so a double quote is written \". It reads like an escaped quote and is not one: there is no string here for it to be inside, and it opens none

read ascloc.defaultmezura.contentmezura.regionscc.defaulttokei.default
input.clj
1code(def q \")
2code(def x 1)
3comments; a real comment

stringcommentthe tag around another language

What each tool answered

cloc.default ✓ agrees
the rules ask3 lines · 0 blanks · 2 code · 1 comments
it answers3 lines · 0 blanks · 2 code · 1 comments

cloc --json cases/4000-a_quote_that_opens_nothing/4030-character_written_with_a_backslash/input.clj

mezura.content ✓ agrees
the rules ask3 lines · 2 code · 1 comments · 0 extra
it answers3 lines · 2 code · 1 comments · 0 extra

mezura cases/4000-a_quote_that_opens_nothing/4030-character_written_with_a_backslash/input.clj --output json --hide timing --counting content

mezura.region ✓ agrees
the rules ask3 lines · 0 blanks · 2 code · 1 comments
it answers3 lines · 0 blanks · 2 code · 1 comments

mezura cases/4000-a_quote_that_opens_nothing/4030-character_written_with_a_backslash/input.clj --output json --hide timing --counting region

scc.default ✓ agrees
the rules ask3 lines · 0 blanks · 2 code · 1 comments
it answers3 lines · 0 blanks · 2 code · 1 comments

scc --format json cases/4000-a_quote_that_opens_nothing/4030-character_written_with_a_backslash/input.clj

tokei.default ✓ agrees
the rules ask3 lines · 0 blanks · 2 code · 1 comments
it answers3 lines · 0 blanks · 2 code · 1 comments

tokei --output json cases/4000-a_quote_that_opens_nothing/4030-character_written_with_a_backslash/input.clj