pliosoft / toml-parse

Haskell library for reading TOML and easily querying it
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

UTF escape commands in tokenizer for quoted strings #6

Closed clord closed 7 years ago

clord commented 8 years ago

Error from burnt sushi tests:

Test: unicode-escape (valid)

Values for key 'answer4' don't match. Expected a value of 'δ' but got '\u03B4'.

To fix, tokenizer has to decode escape sequences. I have some code that does this somewhere, just have to find it.

pbrisbin commented 8 years ago

This may be valuable: https://github.com/cies/htoml/blob/master/src/Text/Toml/Parser.hs#L258

clord commented 8 years ago

Toml's spec specifies the same list: https://github.com/toml-lang/toml#string