C function prototype syntax highlighting broken if space before semicolon
One example easily demonstrates this:
Here's the line of code fenced with no language specification:
static void func ( ) ;
Here is the exact same code again, fenced and specified as c
:
static void func ( ) ;
For history sake (so this will make sense after gitlab.com is updated to fix the bug), the output looks like this:
static void static void func ( ) ; ( ) static void func ( ) ;
Here's the HTML generated (or you can just view the source of this page, until the bug is fixed:
<pre class="code highlight white c">
<code>
<span class="k">static</span>
<span class="kt">void</span>
<span class="nf">static void func ( ) ;</span>
<span class="p">(</span>
<span class="p">)</span>
<span class="p">static void func ( ) ;</span>
</code>
</pre>
Note that the problem doesn't happen if you remove the space beteween the parens and the semicolon:
static void func ( );
Here is the exact same code again, fenced and specified as c
:
static void func ( );