1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//! Document Parsing Helpers
//!
//! Provides parsing, validation, and utility helpers for YAML document parsing.
//! Includes entry points for error construction, token stream setup, whitespace/comment skipping,
//! mapping key lookahead, block head classification, indentation validation, and comment parsing.
//!
//! This module is organized into focused sub-modules:
//! - [`core`] — Error construction, directive handling, token matching
//! - [`document_markers`] — Document start/end marker parsing and classification
//! - [`validation`] — Indentation, tab, trailing-content, and comment-spacing validation
//! - [`peek_ahead`] — Mapping key lookahead and block-head classification
//! - [`comments`] — Comment token parsing
//!
//! Copyright (c) 2026 YAML Library Developers
// DRY NOTE: All comment parsing and comment spacing validation must use parse_comment_token and validate_comment_spacing_token below.
// DRY NOTE: All indentation and tab validation must use validate_indentation_and_whitespace below.
// DRY NOTE: All block head classification (mapping, sequence, value, etc.) must use classify_block_head below.
// DRY NOTE: All mapping key lookahead (colon detection, flow depth) must use peek_ahead_for_mapping_key below.
pub
pub
pub
pub
pub
// Re-export everything so callers that use `helpers::foo` continue to work
// without any changes.
pub use parse_comment_token;
pub use ;
pub use ;
pub use ;
pub use ;