After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 683030 - Matching brackets highlighting incorrect in some PHP scripts(using Gedit on Ubuntu)
Matching brackets highlighting incorrect in some PHP scripts(using Gedit on U...
Status: RESOLVED DUPLICATE of bug 300458
Product: gtksourceview
Classification: Platform
Component: General
unspecified
Other Linux
: Normal trivial
: ---
Assigned To: GTK Sourceview maintainers
GTK Sourceview maintainers
Depends on:
Blocks:
 
 
Reported: 2012-08-30 13:00 UTC by Robert Arkenin
Modified: 2013-04-20 16:51 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Robert Arkenin 2012-08-30 13:00:05 UTC
In certain PHP scripts, the opening < of <?php is matched with the first > in the code instead of the ending >, possibly because of assignment operators being treated like closing brackets. See the code below:

1 <?php
2 class ErrorInfo {
3 //Some code without less-than or greater-than signs
4 $errArray=array(
5 mbStringNotFound => 'The mbstring extension was not found',
6 //More code here...
7 ?>

Note that the greater-than sign in the assignment( => ) on line 5 is matched to the opening on like 1, instead of to the closing ?> on line 7.

I am on Ubuntu 11.10, x64, with Gedit 3.2.0-0ubuntu1. I will get the version of gtksourceview when I am back on my Ubuntu machine.
Comment 1 Sébastien Wilmet 2013-04-20 16:51:19 UTC

*** This bug has been marked as a duplicate of bug 300458 ***