-
Notifications
You must be signed in to change notification settings - Fork 217
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
enable conversion for Map NonList|NonRecord Any
#1379
Comments
To be clear: You'd like your example to be converted like this? block-comment:
- captures:
1: punctuation.definition.comment.scl.scl
match: (/\*)(?:\s*(?=\s|(\*/)))?
push:
- meta_scope: comment.block
- pop: true
captures:
0: punctuation.definition.comment.scl.scl
match: \*/
` |
Yes |
Work on this issue should probably wait for the switch to |
If we want to generate and parse YAML with non-Text keys, we will have to move away from the current Dhall-JSON-YAML pipeline, where Dhall expressions are first encoded as JSON and then translated to YAML. It would probably make sense to move the |
I have made a separate issue for discussing |
Map NonList|NonRecord Any
Map NonList|NonRecord Any
I've just noticed that
dhall-to-yaml
doesn't transformMap Natural Text
which I use to define .sublime-syntax match patterns (by convertingList/indexed
intoMap
)Unlike JSON, key in YAML can be any type except List and Record, which are:
Text
Natural
Integer
Double
Bool
Optional Type
, except List and RecordAlso, some key type that I think need to be converted too on
dhall-to-json
:None Text
, --omitEmpty will delete record fieldSome Text
let any_Union_that_has = < T1: Text | T2: Optional Text | T3 >
Text
The text was updated successfully, but these errors were encountered: