pub fn parse_key_as_label(
key_str: &str,
next_line_type: &LineType,
) -> Option<Label>Expand description
Parses a key string (content before the final ‘:’ of a label line)
into an Option<Label>.
Returns None if the string does not conform to any known label syntax.