Gedit matching brackets highlighting incorrect in some PHP scripts

Bug #1039581 reported by hexafraction
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GtkSourceView
Invalid
Low
gtksourceview3 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

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

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: gedit 3.2.0-0ubuntu1
ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
Uname: Linux 3.0.0-12-generic x86_64
ApportVersion: 1.23-0ubuntu3
Architecture: amd64
Date: Tue Aug 21 11:06:22 2012
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
SourcePackage: gedit
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
hexafraction (rarkenin) wrote :
hexafraction (rarkenin)
summary: - Gedit mtching brackets highliting incorrect in some PHP scripts
+ Gedit matching brackets highlighting incorrect in some PHP scripts
affects: gedit (Ubuntu) → gtksourceview3 (Ubuntu)
Revision history for this message
hexafraction (rarkenin) wrote :

Filed upstream bug...

Changed in gtksourceview:
importance: Unknown → Low
status: Unknown → New
Changed in gtksourceview:
status: New → Invalid
Revision history for this message
dino99 (9d9) wrote :

This version is no more supported and is not a 'security' problem; so does not expect a backport

Changed in gtksourceview3 (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.