Document {} behaving as literals in some contexts.

Regen docs.
This commit is contained in:
jzmaddock
2014-09-25 11:54:14 +01:00
parent 21d73e9851
commit a50c438d77
3 changed files with 13 additions and 1 deletions

View File

@ -176,6 +176,13 @@
<pre class="programlisting"><span class="identifier">a</span>
<span class="identifier">aaaa</span>
</pre>
<p>
Note that the "{" and "}" characters will treated as
ordinary literals when used in a context that is not a repeat: this matches
Perl 5.x behavior. For example in the expressions "ab{1", "ab1}"
and "a{b}c" the curly brackets are all treated as literals and
<span class="emphasis"><em>no error will be raised</em></span>.
</p>
<p>
It is an error to use a repeat operator, if the preceding construct can not
be repeated, for example: