← every case · 4000 · a quote that opens nothing
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 around it for it to be inside, and it opens none. The real string above it runs over two lines and the second begins with ;, so a counter that reads no string at all counts that line as a comment
| 1 | codecodecodecodecodecodecode | (def s "first |
| 2 | codecodecodecodecodecodecode | ; still inside the string") |
| 3 | codecodecodecodecodecodecode | (def q \") |
| 4 | codecodecodecodecodecodecode | (def x 1) |
| 5 | commentscommentscommentscommentscommentscommentscomments | ; a real comment |
stringcommentthe tag around another language
its Clojure filters drop every line that begins with ;, so line 2, inside the string opened on line 1, is counted as a comment
cloc --json --config /tmp/linejudge-empty-file cases/4000-a_quote_that_opens_nothing/4030-character_written_with_a_backslash/input.clj
--strip-str-comments
its Clojure filters drop every line that begins with ;, so line 2, inside the string opened on line 1, is counted as a comment
cloc --json --config /tmp/linejudge-empty-file cases/4000-a_quote_that_opens_nothing/4030-character_written_with_a_backslash/input.clj --strip-str-comments
its Clojure filters drop every line that begins with ;, so line 2, inside the string opened on line 1, is counted as a comment
cloc --json --config /tmp/linejudge-empty-file cases/4000-a_quote_that_opens_nothing/4030-character_written_with_a_backslash/input.clj --docstring-as-code
codestats cases/4000-a_quote_that_opens_nothing/4030-character_written_with_a_backslash/input.clj --output json-compact --include-generated --no-gitignore --hidden --no-config
mezura cases/4000-a_quote_that_opens_nothing/4030-character_written_with_a_backslash/input.clj --output json --hide timing --no-default-config --no-local --counting content
mezura cases/4000-a_quote_that_opens_nothing/4030-character_written_with_a_backslash/input.clj --output json --hide timing --no-default-config --no-local --counting region
its Clojure has no string at all, so line 2, inside the string opened on line 1, begins with ; and is read as a comment
scc --format json --no-config cases/4000-a_quote_that_opens_nothing/4030-character_written_with_a_backslash/input.clj
line 2 sits inside the string opened on line 1 and begins with ;, and it is read as a comment. The string itself does run on: with plain text on that line the line comes out as code
tokei --output json cases/4000-a_quote_that_opens_nothing/4030-character_written_with_a_backslash/input.clj