Skip to content
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

Some redactional changes and corrections #2922

Merged
merged 5 commits into from Jul 28, 2019
Merged

Some redactional changes and corrections #2922

merged 5 commits into from Jul 28, 2019

Conversation

threadless-screw
Copy link
Collaborator

Attempt to clarify, prettify, and correct some matters in the regexes-section, most notably the incorrect reference to $?NL in the discussion of the backslashed character class \n.

other characters must either be escaped with a backslash (for example, C<\:>
to match a colon), or be within quotes:
Alphanumeric characters, including the underscore C<_> which is considered
alphabetic, are matched literally. All other characters must either be escaped
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels wrong, because it might give the impression that dd "_" ~~ /<:alpha>/ would give a Match. I would remove the "which is considered alphabetic" part.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand what you are saying. At the same time, "_".match(/ <alpha> /) does yield a Match, which is why the current text confuses me. But I see now that <alpha> is actually defined as "Alphabetic characters including _", so there is consistency. I'll revert the proposed change.

Copy link
Contributor

@JJ JJ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@JJ JJ merged commit 53ac477 into Raku:master Jul 28, 2019
@threadless-screw threadless-screw deleted the regexes branch July 28, 2019 08:37
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.

None yet

3 participants