gedit syntax coloring fails in Perl

Bug #113287 reported by misan
8
Affects Status Importance Assigned to Milestone
gedit
Fix Released
Medium
gedit (Ubuntu)
Invalid
Undecided
Unassigned
gtksourceview (Ubuntu)
Fix Released
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: gedit

When writing a Perl program that uses the expression $' the editor incorrectly assumes the rest of the program is a string (pink color) as it cannot match the closing quote.

$' is a valid Perl construct like $_ or $& so it should be recognized as such.

ProblemType: Bug
Architecture: i386
Date: Tue May 8 10:55:14 2007
DistroRelease: Ubuntu 7.04
ExecutablePath: /usr/bin/gedit
Package: gedit 2.18.1-0ubuntu1
PackageArchitecture: i386
ProcCmdline: gedit parse-path.pl
ProcCwd: /home/misan/Documents/java/Router
ProcEnviron:
 SHELL=/bin/bash
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=es_ES.UTF-8
SourcePackage: gedit
Uname: Linux msanchez2 2.6.20-15-generic #2 SMP Sun Apr 15 07:36:31 UTC 2007 i686 GNU/Linux

Revision history for this message
misan (misan) wrote :
Revision history for this message
Christian Reis (kiko) wrote :

Confirmed on edgy.

Changed in gedit:
status: Unconfirmed → Confirmed
Christian Reis (kiko)
Changed in gedit:
importance: Undecided → Low
Changed in gedit:
status: Unknown → Unconfirmed
Revision history for this message
Bradly Wilson (mocoloco) wrote :

Exceptions for quote matching should probably be made for regexes too. This line of code throws off the highlighting for the rest of the script:
 $value =~ s/"/""/gs;
Using gedit 2.18.1 on Feisty.

Changed in gedit:
assignee: nobody → desktop-bugs
Revision history for this message
Sebastien Bacher (seb128) wrote :

the gtksourceview task is enough

Changed in gedit:
status: Unconfirmed → Rejected
Changed in gedit:
status: New → Fix Released
Revision history for this message
Sebastien Bacher (seb128) wrote :

the bug should be fixed in gutsy, feel free to reopen if that's not the case though

Changed in gtksourceview:
status: Confirmed → Fix Released
Changed in gedit:
importance: Unknown → Medium
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.