[Github-comments] [geany/geany] Syntax highlighting problem in PHP (#1143)

Nacho Cabanes notifications at xxxxx
Tue Jul 19 22:11:24 UTC 2016


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:

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

```
<p>Paragraph 1</p>

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

<p>Paragraph 2</p>
```

Save it as "example.php" and the syntax highlighting will be correct. 

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.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1143
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160719/895a897e/attachment.html>


More information about the Github-comments mailing list