pub fn parse_scalar_assignment(
word: &str,
options: &ParserOptions,
) -> Result<Assignment, WordParseError>Expand description
Parses a scalar assignment from a given word.
A parenthesized value is treated as scalar text; see
parse_compound_assignment_value for reinterpreting such a value as a
compound one.
§Arguments
word- The word to parse.options- The parser options to use.
§Errors
Returns crate::WordParseError::Word if word is not a valid
name=value assignment.