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

Use YAML version traits in the parser #229

Open
wants to merge 64 commits into
base: master
Choose a base branch
from

Conversation

Paalon
Copy link
Contributor

@Paalon Paalon commented Jun 22, 2024

Use version traits for most functions in the parser. We need to make conditional branches when processing a YAML version directive but this PR does not include it.

Paalon added 30 commits June 14, 2024 21:55
`firstmark(token)` and `lastmark(token)`.
* Performance improvement of `scan_line_break`.
* Rename `scan_line_break` to `yaml_1_1_scan_line_break`.
* Add `yaml_1_2_scan_line_break`.
* Add better comments.
* Add a TODO comment about possible bugs.
* Bug fix.
* Change to use `yaml_1_1_` prefix for YAML 1.1's `forwardchars!`.
* Add `yaml_1_2_forwardchars!` for YAML 1.2's `forwardchars!`.
* Add some helper functions for `forwardchars!`:
  * `forwardchar_skip!`
  * `forwardchar_nobreak!`
  * `forwardchar_breakline!`
Change to not overbuffer. This bug fix brake the test `windows_newlines`
but I think the test is incorrect.
Paalon added 29 commits June 21, 2024 15:40
* Sort out functions.
* Add `b-char` for YAML 1.2.
* Add comments to `forwardchars!`.
@kescobo
Copy link
Collaborator

kescobo commented Jun 25, 2024

This has identical title to #228, and seems to be on the same branch. Was that unintentional duplication? Given all of the merge commits here, and the overlap with other stuff, I'm guessing this could do with a rebase / force push

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.

2 participants