← Back to team overview

desktop-packages team mailing list archive

[Bug 1039581] Re: Gedit matching brackets highlighting incorrect in some PHP scripts

 

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

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gtksourceview3 in Ubuntu.
https://bugs.launchpad.net/bugs/1039581

Title:
  Gedit matching brackets highlighting incorrect in some PHP scripts

Status in GtkSourceView:
  Invalid
Status in gtksourceview3 package in Ubuntu:
  Invalid

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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/gtksourceview/+bug/1039581/+subscriptions