-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
1 parent
5db1051
commit b3968f6
Showing
4 changed files
with
49 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
λ(isActive : Bool) | ||
→ { barLeftEnd = | ||
[ "┨" ] : Optional Text | ||
, barRightEnd = | ||
[ "┠" ] : Optional Text | ||
, separator = | ||
[ "┃" ] : Optional Text | ||
, alignment = | ||
< ToTheLeft = {=} | ToTheRight : {} | Centered : {} > | ||
: ./Alignment.dhall | ||
, barWidth = | ||
[] : Optional Natural | ||
, barSegments = | ||
[ "index", "command", "path", "title" ] | ||
} | ||
: ./Bar.dhall |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
λ(isActive : Bool) | ||
→ { barLeftEnd = | ||
[ "┨" ] : Optional Text | ||
, barRightEnd = | ||
[ "┠" ] : Optional Text | ||
, separator = | ||
[ "┃" ] : Optional Text | ||
, alignment = | ||
< ToTheLeft = {=} | ToTheRight : {} | Centered : {} > | ||
: ./Alignment.dhall | ||
, barWidth = | ||
[] : Optional Natural | ||
, barSegments = | ||
[ "index", "command", "path", "title" ] | ||
} | ||
: ./Bar.dhall |