Skip to content
This repository was archived by the owner on Jul 19, 2020. It is now read-only.

Finer-grained parser errors#154

Merged
hgzimmerman merged 3 commits into
masterfrom
core_parser_errors
Oct 25, 2019
Merged

Finer-grained parser errors#154
hgzimmerman merged 3 commits into
masterfrom
core_parser_errors

Conversation

@hgzimmerman
Copy link
Copy Markdown
Member

The parser subsystem now supports reporting errors inside of capture groups.

This looks like:

   = help: message: Invalid Matcher: Could not parse route.
           Route: /bad_route{4hello}
           ------------------^
           Expected: <ident>
           Reason: The character: '4' could not be used as a Rust identifier.

To enable this functionality, the core parsers now report errors themselves: closes #149

@hgzimmerman hgzimmerman merged commit b4a6475 into master Oct 25, 2019
@hgzimmerman hgzimmerman deleted the core_parser_errors branch October 25, 2019 23:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Report parser errors from the smallest constituent sub-parsers

1 participant