-
Notifications
You must be signed in to change notification settings - Fork 288
In regexes.rakudoc, add explanations for <same> and <at(n)>, and fix/clarify some more #4657
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Unicode set unions/differences are formed with `+` and `-`, never with a backslash before (verification: in roast, «- :» is used for set substraction [ripgrep command: rg '\- :'], whereas «\- :» never occurs [ripgrep command: rg '\\- :'])
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please verify whether rakudoc here is rendering as expected on the site (via another table that’s already out there, probably), and then standardize usage here.
doc/Language/regexes.rakudoc
Outdated
| \+ | set union | ||
| \- | set difference | ||
| C<+> | set union | ||
| C<-> | set difference |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are using rakudoc in this column...
doc/Language/regexes.rakudoc
Outdated
| <?ww> | Within word | "t⏏w⏏o w⏏o⏏r⏏d⏏s~!" | ||
| <!ww> | Not within word | "⏏two⏏ ⏏words⏏~⏏!⏏" | ||
| <at(n)> | After nth character | "abc⏏de" for C<at(3)> | ||
| <!at(n)> | Not after nth char | "⏏a⏏b⏏cd⏏e" for C<!at(3)> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but using simple <>’s in this column.
Ah, true. There really seems to be no such table using rakudoc inside: both For the first two lines, we can go back to For the lines from the second quote, I'll also remove the rakudoc syntax |
Both are only mentioned without any details so far. Their behavior is documented at the bottom of roast S05-mass/stdrules.t.
As for
at(n), I'm not entirely sure if presentation that I've chosen is the best, sinceatalso installs a named capture and is nowhere explicitly called an anchor (although it works at least very similar to one).