Support for |
in keywords and symbols, support of namespaced maps, special support for :nil/:true/:false, fixes, formatting, deps bump
#44
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi! Thank you for this package!
Yes, this PR is about many different things, let me know please, if it's better to make multiple PRs. Nevertheless, changes are split into individual commits.
|
in symbols and keywords. https://github.com/edn-format/edn doesn't mention it in the list of allowed symbols but Clojure support them in EDN reader https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/EdnReader.java#L28 and in the language.I personally love to use them for "or" meaning, like :number|string. It's a blocker for me, because I can't parse my EDN files currently.
Before this PR Eden parsed such maps as tag. That was incorrect because tag can't start from
:
.:nil
,:true
and:false
keywords. Before it was impossible to distinguish them from corresponding "special symbols", like Eden.decode!("true") == Eden.decode!(":true") => true.It now decodes them to {:keyword, nil/true/false} and support of encoding of such structure.
It fixes some tests (sets, float)
Format code with
mix format mix.exs "lib/**/*.{ex,exs}" "test/**/*.{ex,exs}"
Bumps deps & removes
exreloader
(it doesn't compile for me)