← every case · 4000 · a quote that opens nothing

4070-primed_identifier_ocaml

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 the comment under that is written with (* *), which nests

read ascloc.defaultmezura.contentmezura.regionscc.defaulttokei.default
input.ml
1codelet x' = "don't"
2codelet y' = 'a'
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/4070-primed_identifier_ocaml/input.ml

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/4070-primed_identifier_ocaml/input.ml --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/4070-primed_identifier_ocaml/input.ml --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/4070-primed_identifier_ocaml/input.ml

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/4070-primed_identifier_ocaml/input.ml