avh4 / elm-format

elm-format formats Elm source code according to a standard set of rules based on the official Elm Style Guide
BSD 3-Clause "New" or "Revised" License
1.31k stars 148 forks source link

No tests for unicode handling in Elm names #741

Open emmabastas opened 3 years ago

emmabastas commented 3 years ago

Elm names (i.e. variable, type, module, variant and port names) can contain unicode lower-/uppercase characters, but elm-format does not test for this in it's test suite.

What is lower and uppercase is determined by haskells Data.Char.isLower and Data.Char.isUpper (source: conversation with Evan)

lydell commented 3 years ago

I dug into this unicode stuff not too long ago. Here are some interesting links and regexes for this in case it is of interest:

https://github.com/rtfeldman/node-test-runner/blob/15deef63cc69f9968076353fa6af9c28d41fc1aa/lib/Parser.js#L229-L235