← every case · 4000 · a quote that opens nothing
Haskell 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, where a pair of apostrophes does mean what it looks like, and a block comment opens after it. 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 | x' = "don't" |
| 2 | codecodecodecodecodecodecode | 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/4060-primed_identifier_haskell/input.hs
--strip-str-comments
cloc --json --config /tmp/linejudge-empty-file cases/4000-a_quote_that_opens_nothing/4060-primed_identifier_haskell/input.hs --strip-str-comments
cloc --json --config /tmp/linejudge-empty-file cases/4000-a_quote_that_opens_nothing/4060-primed_identifier_haskell/input.hs --docstring-as-code
codestats cases/4000-a_quote_that_opens_nothing/4060-primed_identifier_haskell/input.hs --output json-compact --include-generated --no-gitignore --hidden --no-config
mezura cases/4000-a_quote_that_opens_nothing/4060-primed_identifier_haskell/input.hs --output json --hide timing --no-default-config --no-local --counting content
mezura cases/4000-a_quote_that_opens_nothing/4060-primed_identifier_haskell/input.hs --output json --hide timing --no-default-config --no-local --counting region
scc --format json --no-config cases/4000-a_quote_that_opens_nothing/4060-primed_identifier_haskell/input.hs
tokei --output json cases/4000-a_quote_that_opens_nothing/4060-primed_identifier_haskell/input.hs