Revision 26401

Date:
2009/04/24 16:55:48
Author:
lwall
Revision Log:
[S02] also count Pi/Pf characters as bracketing, wayland76++
Files:

Legend:

 
Added
 
Removed
 
Modified
  • docs/Perl6/Spec/S02-bits.pod

     
    12 12
    13 13 Maintainer: Larry Wall <larry@wall.org>
    14 14 Date: 10 Aug 2004
    15 Last Modified: 19 Apr 2009
    15 Last Modified: 24 Apr 2009
    16 16 Number: 2
    17 Version: 164
    17 Version: 165
    18 18
    19 19 This document summarizes Apocalypse 2, which covers small-scale
    20 20 lexical items and typological issues. (These Synopses also contain
     
    73 73
    74 74 For some syntactic purposes, Perl distinguishes bracketing characters
    75 75 from non-bracketing. Bracketing characters are defined as any Unicode
    76 characters with either bidirectional mirrorings or Ps/Pe properties.
    76 characters with either bidirectional mirrorings or Ps/Pe/Pi/Pf properties.
    77 77
    78 78 In practice, though, you're safest using matching characters with
    79 Ps/Pe properties, though ASCII angle brackets are a notable exception,
    80 since they're bidirectional but not in the Ps/Pe set.
    79 Ps/Pe/Pi/Pf properties, though ASCII angle brackets are a notable exception,
    80 since they're bidirectional but not in the Ps/Pe/Pi/Pf sets.
    81 81
    82 82 Characters with no corresponding closing character do not qualify
    83 83 as opening brackets. This includes the second section of the Unicode
    84 84 BidiMirroring data table, as well as C<U+201A> and C<U+201E>.
    85 85
    86 If a character is already used in Ps/Pe mappings, then any entry
    86 If a character is already used in Ps/Pe/Pi/Pf mappings, then any entry
    87 87 in BidiMirroring is ignored (both forward and backward mappings).
    88 88 For any given Ps character, the next Pe codepoint (in numerical
    89 89 order) is assumed to be its matching character even if that is not