← every case · 4000 · a quote that opens nothing
OCaml lets a name end in an apostrophe, so x' is one name and the apostrophe opens nothing. The line under it holds a real character literal and opens a comment written with (* *), which nests. A counter that pairs the apostrophes wrongly is inside a string when it meets the opener, whether its strings end with the line or run on
| 1 | codecodecodecodecodecodecode | let x' = "don't" |
| 2 | codecodecodecodecodecodecode | let y' = 'a' (* a real comment |
| 3 | commentscommentscommentscommentscommentscommentscomments | that closes on this line *) |
stringcommentthe tag around another language
cloc --json --config /tmp/linejudge-empty-file cases/4000-a_quote_that_opens_nothing/4070-primed_identifier_ocaml/input.ml
--strip-str-comments
cloc --json --config /tmp/linejudge-empty-file cases/4000-a_quote_that_opens_nothing/4070-primed_identifier_ocaml/input.ml --strip-str-comments
cloc --json --config /tmp/linejudge-empty-file cases/4000-a_quote_that_opens_nothing/4070-primed_identifier_ocaml/input.ml --docstring-as-code
codestats cases/4000-a_quote_that_opens_nothing/4070-primed_identifier_ocaml/input.ml --output json-compact --include-generated --no-gitignore --hidden --no-config
mezura cases/4000-a_quote_that_opens_nothing/4070-primed_identifier_ocaml/input.ml --output json --hide timing --no-default-config --no-local --counting content
mezura cases/4000-a_quote_that_opens_nothing/4070-primed_identifier_ocaml/input.ml --output json --hide timing --no-default-config --no-local --counting region
scc --format json --no-config cases/4000-a_quote_that_opens_nothing/4070-primed_identifier_ocaml/input.ml
tokei --output json cases/4000-a_quote_that_opens_nothing/4070-primed_identifier_ocaml/input.ml