bash / broccolini

A non-destructive parser for INI files compatible with `GetPrivateProfileString`
https://broccolini.tau.garden/
MIT License
2 stars 2 forks source link

Fix parsing empty lines and leading/trailing trivias #14

Closed csillikd closed 4 months ago

csillikd commented 4 months ago

-Empty lines are recognized as leading or trailing trivia -Every node can have leading/trailing trivia

Notice: IsBlank is still a valid function, an only-whitespace document contains a single "blank" UnrecognizedNode.

bash commented 4 months ago

Thanks for putting work into this! I will try to review/merge/release this sometime this week but no promises ;)

bash commented 4 months ago

I started reviewing your PR today and added some tests for your new code (some WIP stuff is here if you're interested) ...and I promptly found a bug (#15) in my tokenizer 😄

Enough for today :)