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

refactor: ini format parser #470

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

polarathene
Copy link
Collaborator

Intended to be easier to grok and match the same flow as other format parsers.


I worked on this after #469 , but my main gripes were with the sec not being obvious that it was referencing a section, and the repeated inner loop for building property maps.

I added the same enum check with the final Table map wrapped in Value like other parsers, although for this that may be redundant and could be dropped?

Not too fussed if you want to reject this. I originally envisioned it looking nicer than it turned out 😅

src/file/format/ini.rs Outdated Show resolved Hide resolved
src/file/format/ini.rs Outdated Show resolved Hide resolved
src/file/format/ini.rs Outdated Show resolved Hide resolved
src/file/format/ini.rs Outdated Show resolved Hide resolved
src/file/format/ini.rs Outdated Show resolved Hide resolved
Copy link
Collaborator Author

@polarathene polarathene left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's me for the night, I'll address any remaining feedback tomorrow 😴

src/file/format/ini.rs Show resolved Hide resolved
src/file/format/ini.rs Outdated Show resolved Hide resolved
Intended to be easier to grok and match the same flow as other format parsers.

Signed-off-by: Brennan Kinney <[email protected]>
Signed-off-by: Brennan Kinney <[email protected]>
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.

3 participants