<p>Syntax highlighting fails in PHP files when a parameter is a string more than one line long. It happens since (at least) several versions ago.  To repeat the bug:</p>

<p>Type or copy/paste a PHP file with a function parameter of type string, more than one line long, such as this:</p>

<pre><code><p>Paragraph 1</p>

<?php function("1
2", 'sql') ?> 

<p>Paragraph 2</p>
</code></pre>

<p>Save it as "example.php" and the syntax highlighting will be correct. </p>

<p>Now modify the second line of the function (for example, to change the 2 to a 3 or to add some text or a few extra lines) and the paragraph 2 (and all the following ones if they existed) will be "highlighted" in green color as if they still were part of the parameter.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/1143">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJw1JOzRueIN99pkTJVJCcrhAVXtjks5qXUuMgaJpZM4JQOpE">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ-CcEDO5qgVvbqMSHPepHber-3keks5qXUuMgaJpZM4JQOpE.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/issues/1143"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>