fktn-k / fkYAML

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

Fix detecting invalid contents of block scalar headers #387

Closed fktn-k closed 1 month ago

fktn-k commented 1 month ago

The current library can't detect invalid contents specified in block scalar headers, like the followings:

foo: |10 # the indentation must be between 1 and 9.
foo: >++ # too many chomping indicators
foo: |invalid # neither chomping nor indentation indicators must be a comment.

So, this PR has fixed the implementation for parsing block scalar headers and also added some relevant test cases.


Pull Request Checklist

Read the CONTRIBUTING.md file for detailed information.

Please don't

github-actions[bot] commented 1 month ago

:octocat: Upload Coverage Event Notification

Coverage data has been uploaded for the commit 2d06a3ebc40ba57ddd3e3e53ceb443bacfb95ed9. You can download the artifact which contains the same file uploaded to the Coveralls and its HTML version.

Name fkYAML_coverage.pr387.zip
ID 1877686395
URL https://github.com/fktn-k/fkYAML/actions/runs/10644770003/artifacts/1877686395