fktn-k / fkYAML

A C++ header-only YAML library
MIT License
69 stars 7 forks source link

#175 support detecting indentation in deserialization #176

Closed fktn-k closed 12 months ago

fktn-k commented 12 months ago

Before this PR, the fkYAML library couldn't detect indentation width before each token of input buffers.
Which resulted in wrong deserialization outputs with the following YAML formatted string:

  foo:
    bar: 123
  baz: true   # This was the part of "foo" mapping node.

This PR has corrected the above issue and support multiple mapping nodes at different levels.

coveralls commented 12 months ago

Coverage Status

coverage: 100.0%. remained the same when pulling 804c0454f99ed7f2da35bd8a414cab824c38ccdc on feature/175_detect_indentation into e9b07c349aeb97dcc4d5c9d679bd202d4989a1a0 on develop.

fktn-k commented 12 months ago

Though I have no idea why Codacy check is failing, I'll merge this PR since the other checks all passes successfully.