keywords.expect.txt 1.1 KB

12345678910111213
  1. <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">$initHighlight</span>(<span class="hljs-params">block, cls</span>) </span>{
  2. <span class="hljs-keyword">try</span> {
  3. <span class="hljs-keyword">if</span> (cls.search(<span class="hljs-regexp">/\bno\-highlight\b/</span>) != <span class="hljs-number">-1</span>)
  4. <span class="hljs-keyword">return</span> process(block, <span class="hljs-literal">true</span>, <span class="hljs-number">0x0F</span>) +
  5. <span class="hljs-string">' class=""'</span>;
  6. } <span class="hljs-keyword">catch</span> (e) {
  7. <span class="hljs-comment">/* handle exception */</span>
  8. }
  9. <span class="hljs-keyword">for</span> (<span class="hljs-keyword">var</span> i = <span class="hljs-number">0</span> / <span class="hljs-number">2</span>; i &lt; classes.length; i++) {
  10. <span class="hljs-keyword">if</span> (checkCondition(classes[i]) === <span class="hljs-literal">undefined</span>)
  11. <span class="hljs-keyword">return</span> <span class="hljs-regexp">/\d+[\s/]/g</span>;
  12. }
  13. }