deblondon / google-code-prettify

Automatically exported from code.google.com/p/google-code-prettify
Apache License 2.0
0 stars 0 forks source link

PHP syntax highlight does not support namespaces #313

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Code is:

<pre><code>catch (\PDOException $e) {
  $error = $e-&gt;getMessage();
</code></pre>

P in the class name should be the same colour as the rest of the name, only \ 
should be different. But the result is:

<pre class="default prettyprint prettyprinted" style=""><code><span 
class="kwd">catch</span><span class="pln"> </span><span 
class="pun">(</span><span class="pln">\P</span><span 
class="typ">DOException</span><span class="pln"> $e</span><span 
class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span 
class="pln">
  $error </span><span class="pun">=</span><span class="pln"> $e</span><span class="pun">-&gt;</span><span class="pln">getMessage</span><span class="pun">();</span></code></pre>

I'm using Stack Exchange version 
(http://drupal.stackexchange.com/a/91283/16495) - probably latest stable 
release. It happens on all major browsers.

Original issue reported on code.google.com by ext.rmol...@gmail.com on 6 Nov 2013 at 9:56

Attachments: