Skip to content

Description of <punct> seems wrong #4783

@2colours

Description

@2colours

Your example of <punct> shows that the documentation is wrong actually. UTS#18 recommends a definition of <:P> (punctuation category characters), and all Rakudo backends agree with this. UTS#18's POSIX-compatible definition is <:P + :S - alpha> (note: the UTS#18 definition of <alpha>, not ours), but specifically recommends against this because counting symbols as punctuation can be confusing. Additionally, S05 corroborates the idea that it should be punctuation only:

• punct

Match a single punctuation character (that is, any character from the Unicode General Category "Punctuation").

The online documentation is simply wrong, it should say <:P> is the definition.

Originally posted by @ShimmerFairy in #509

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation issue (primary issue type)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions