feat(yaml_parser): parse document end token#7936
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