-
-
Notifications
You must be signed in to change notification settings - Fork 100
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
Allow string type to be controlled from the public API #177
Allow string type to be controlled from the public API #177
Conversation
Thank you very much for the kind review @frostming. I changed the implementation to address escaping properly trying to follow what the standard has to say about which characters and sequences that can or cannot appear in the string value... (P.S.: I had one doubt about the standard text, so I opened this issue: toml-lang/toml#877) |
Previously invalid chars were being escaped for the sake of not having invalid strings. It is preferable instead to explicitly fail.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for your great work
…ings Allow string type to be controlled from the public API
Hello, it would be interesting to expose a way of controlling the string style (e.g. allowing multi line strings).
This PR is an attempt to provide such API.
I ended up going for a very verbose API (with explicit keywords) because I believe that it is easier to use, but please let me know if you prefer exposing
StringType
as part of the public API.I think this closes #44.