Skip to content

Backtrack explicitly across an optional namespace prefix - #14

Open
ugexe wants to merge 1 commit into
css-raku:masterfrom
ugexe:sigspace-ratchet
Open

Backtrack explicitly across an optional namespace prefix#14
ugexe wants to merge 1 commit into
css-raku:masterfrom
ugexe:sigspace-ratchet

Conversation

@ugexe

@ugexe ugexe commented Sep 8, 2026

Copy link
Copy Markdown

The optional prefix ident matches the url of url(...), and the rule only parses because it then backtracks to give the prefix up. That only works because a quantifier followed by whitespace in a rule is currently not ratcheted, which rakudo may change in the future. ?! asks for the backtracking explicitly, so the rule keeps parsing either way.

The optional prefix ident matches the `url` of `url(...)`, and the rule
only parses because it then backtracks to give the prefix up. That only
works because a quantifier followed by whitespace in a rule is currently
not ratcheted, which rakudo may change in the future. `?!` asks for the
backtracking explicitly, so the rule keeps parsing either way.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant