-
-
Notifications
You must be signed in to change notification settings - Fork 743
feat(yaml_parser): parse document end token #7936
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
Conversation
|
8dbc9a0 to
c48cebc
Compare
WalkthroughThis PR refactors the YAML lexer to introduce structured document-end handling and consolidate scope-closing logic. Key changes include renaming Possibly related PRs
Suggested reviewers
Pre-merge checks and finishing touchesβ Passed checks (3 passed)
β¨ Finishing touches
π§ͺ Generate unit tests (beta)
π Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro β Files ignored due to path filters (3)
π Files selected for processing (8)
π§° Additional context usedπ Path-based instructions (2)**/*.{rs,toml}π CodeRabbit inference engine (CONTRIBUTING.md)
Files:
**/*.rsπ CodeRabbit inference engine (CONTRIBUTING.md)
Files:
π§ Learnings (21)π Learning: 2025-10-15T09:22:15.851ZApplied to files:
π Learning: 2025-10-15T09:25:05.698ZApplied to files:
π Learning: 2025-10-15T09:24:31.042ZApplied to files:
π Learning: 2025-10-24T21:24:58.650ZApplied to files:
π Learning: 2025-10-15T09:24:31.042ZApplied to files:
π Learning: 2025-10-15T09:22:15.851ZApplied to files:
π Learning: 2025-10-24T21:24:58.650ZApplied to files:
π Learning: 2025-10-15T09:22:15.851ZApplied to files:
π Learning: 2025-10-15T09:25:05.698ZApplied to files:
π Learning: 2025-10-15T09:22:15.851ZApplied to files:
π Learning: 2025-10-15T09:22:46.002ZApplied to files:
π Learning: 2025-10-15T09:22:46.002ZApplied to files:
π Learning: 2025-10-24T21:24:58.650ZApplied to files:
π Learning: 2025-10-15T09:22:46.002ZApplied to files:
π Learning: 2025-10-15T09:22:15.851ZApplied to files:
π Learning: 2025-10-15T09:24:31.042ZApplied to files:
π Learning: 2025-10-24T21:24:58.650ZApplied to files:
π Learning: 2025-10-15T09:24:31.042ZApplied to files:
π Learning: 2025-10-24T21:24:58.650ZApplied to files:
π Learning: 2025-10-24T21:24:58.650ZApplied to files:
π Learning: 2025-10-26T15:28:00.951ZApplied to files:
𧬠Code graph analysis (3)crates/biome_yaml_parser/src/parser/document.rs (1)
crates/biome_yaml_parser/src/parser/parse_error.rs (3)
crates/biome_yaml_parser/src/lexer/mod.rs (1)
πͺ YAMLlint (1.37.1)crates/biome_yaml_parser/tests/yaml_test_suite/err/document/doc_end_with_trailing_tokens.yaml[error] 1-1: syntax error: expected the node content, but found '' (syntax) crates/biome_yaml_parser/tests/yaml_test_suite/ok/document/separated_by_doc_end.yaml[error] 3-3: syntax error: expected '', but found '' (syntax) Comment |
Summary
Parse document end token
.... As the name implied, a document end token marks the end of a document in a stream, allowing a new document to start.Test Plan
Added new snapshots for multiple documents YAML as well as malformed document end.
Docs
N/A