Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve Unicode characters #679

Merged
merged 1 commit into from
Nov 12, 2018
Merged

Conversation

Gabriella439
Copy link
Collaborator

Fixes dhall-lang/dhall-lang#267

According to the standard, Unicode characters up to 0x10FFFF do not
require escaping. See:

https://github.com/dhall-lang/dhall-lang/blob/33cab24f8edd81b167942847a3281306204f0109/standard/dhall.abnf#L192

... so we can preserve them when pretty-printing Dhall expressions.

Note that the current code still does not comply with the standard for Unicode
characters beyond 0x10FFFF, but I'll defer fixing that to a subsequent
change.

Fixes dhall-lang/dhall-lang#267

According to the standard, Unicode characters up to `0x10FFFF` do not
require escaping.  See:

https://github.com/dhall-lang/dhall-lang/blob/33cab24f8edd81b167942847a3281306204f0109/standard/dhall.abnf#L192

... so we can preserve them when pretty-printing Dhall expressions.

Note that the current code still does not comply with the standard for Unicode
characters beyond `0x10FFFF`, but I'll defer fixing that to a subsequent
change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Formatter converts unicode characters to unicode codepoints
1 participant