perluniprops: Show property name without braces
authorKarl Williamson <public@khwilliamson.com>
Sun, 2 Mar 2014 01:28:30 +0000 (18:28 -0700)
committerKarl Williamson <public@khwilliamson.com>
Sun, 2 Mar 2014 03:12:17 +0000 (20:12 -0700)
Properties wth single letter names may be expressed with and without the
brakces; \p{L} and \pL are synonymous.  This commit makes both forms
be in perluniprops, so someone who doesn't know the detailed rules can
search for either to see what it is.

This was suggested by Zsbán Ambrus.

lib/unicore/mktables

index 88c9746..840b15a 100644 (file)
@@ -15213,6 +15213,8 @@ sub make_re_pod_entries($) {
             # property always use the single form.
             if ($table_property == $perl) {
                 $entry = "\\p{$name}";
+                $entry .= " \\p$name" if length $name == 1; # Show non-braced
+                                                            # form too
                 $entry_ref = "\\p{$name}";
             }
             else {    # Compound form.
@@ -16079,6 +16081,9 @@ the right column will give its longer, more descriptive name; and if the left
 column is the longest name, the right column will show any equivalent shortest
 name, in both single and compound forms if applicable.
 
+If braces are not needed to specify a property (e.g., C<\\pL>), the left
+column contains both forms, with and without braces.
+
 The right column will also caution you if a property means something different
 than what might normally be expected.