presentations/highlight-js/test/markup/php/comments.expect.txt

20 lines
980 B
Text
Raw Normal View History

2018-12-07 08:48:05 -06:00
<span class="hljs-meta">&lt;?php</span>
<span class="hljs-comment">/**
* <span class="hljs-doctag">@param</span> int $a
* <span class="hljs-doctag">@return</span> bool
*/</span>
<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">isEven</span><span class="hljs-params">($a)</span> </span>{
<span class="hljs-keyword">return</span> ($a % <span class="hljs-number">2</span>) === <span class="hljs-number">0</span>;
}
<span class="hljs-comment">/**
* <span class="hljs-doctag">TODO:</span> Rely on isEven, but do not highlight bug.
*
* <span class="hljs-doctag">@param</span> int $a
* <span class="hljs-doctag">@return</span> bool
*/</span>
<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">isOdd</span><span class="hljs-params">($a)</span> </span>{
<span class="hljs-keyword">return</span> ($a % <span class="hljs-number">2</span>) === <span class="hljs-number">1</span>;
}