Module nom_supreme::tag
source · [−]Expand description
Enhanced tag parser for nom.
This module introduces a new trait, TagError
, and variants of tag
and tag_case_insensitive
that can use the trait to add to an error the
specific tag that was expected. This allows the error message to report
something like Expected tag: "true"
instead of just Error: Tag
.
Modules
Complete input version of enhanced tag
parsers
Streaming version of enhanced tag
parsers.
Traits
Similar to FromExternalError
and
ContextError
, this trait allows a parser
to create an error representing an unmatched tag. This allows error
messages to produce more useful context about what went wrong.