Skip to content

Use YAML version traits in the parser#229

Open
Paalon wants to merge 64 commits into
JuliaData:masterfrom
Paalon:dev-parser
Open

Use YAML version traits in the parser#229
Paalon wants to merge 64 commits into
JuliaData:masterfrom
Paalon:dev-parser

Conversation

@Paalon
Copy link
Copy Markdown
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
Copy Markdown
Member

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