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

Relax capture rules in Fragment sections in route syntax parser#211

Merged
hgzimmerman merged 3 commits into
masterfrom
allow_many_capture_in_fragment
Dec 19, 2019
Merged

Relax capture rules in Fragment sections in route syntax parser#211
hgzimmerman merged 3 commits into
masterfrom
allow_many_capture_in_fragment

Conversation

@hgzimmerman
Copy link
Copy Markdown
Member

Fixes #193
Partially fixes #197

What this change does is allow the following syntax to be valid:
#{*:field} or #{3:field}, whereas before, only #{field} was valid.

The other possibility instead of this PR is to make #{field} produce the same tokens as #{*:field} when used in a fragment context, but I think its easier for users to not have to deal with a context-sensitive rules about what can be parsed.

For now, this change doesn't make changes to the parser's state machine - in the future, the Fragment state may be modified to allow backtracking to prior states in some form.

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.

Allow paths and queries to exist after a fragment Fragment route not working

1 participant