add example for ConstantName in xdoc, #1106

This commit is contained in:
Vladislav Lisetskiy 2015-07-13 00:14:27 +03:00 committed by Roman Ivanov
parent 82c6366eda
commit 1ef7197d95
1 changed files with 15 additions and 0 deletions

View File

@ -293,6 +293,21 @@ class MyClass {
</module>
</source>
</subsection>
<subsection name="ConstantName">
<p>
Property <code>format</code> in module <code>ConstantName</code>
is used to specify names to be allowed. The following configuration
apart from names allowed by default allows <code>log</code> or
<code>logger</code>:
</p>
<source>
&lt;module name=&quot;ConstantName&quot;&gt;
&lt;property name=&quot;format&quot;
value=&quot;^log(ger)?|[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$&quot;/&gt;
&lt;/module&gt;
</source>
</subsection>
<subsection name="...">
<p>