Gedit matching brackets highlighting incorrect in some PHP scripts
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
ProcVersionSign
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)
summary: |
- Gedit mtching brackets highliting incorrect in some PHP scripts + Gedit matching brackets highlighting incorrect in some PHP scripts |
affects: | gedit (Ubuntu) → gtksourceview3 (Ubuntu) |
Changed in gtksourceview: | |
importance: | Unknown → Low |
status: | Unknown → New |
Changed in gtksourceview: | |
status: | New → Invalid |
Filed upstream bug...