Skip to main content

parse_basic_entry_tree

Function parse_basic_entry_tree 

Source
pub fn parse_basic_entry_tree(input: &str) -> Option<SyntaxNode>
Expand description

Parse a single-line YAML mapping entry and emit a tiny Rowan CST.

The current prototype emits: DOCUMENT YAML_METADATA_CONTENT YAML_BLOCK_MAP YAML_BLOCK_MAP_ENTRY YAML_BLOCK_MAP_KEY YAML_KEY(key) YAML_COLON(“:”) YAML_BLOCK_MAP_VALUE [WHITESPACE(“ “)] // when present in the original input YAML_SCALAR(value)