Perl syntax highlighting fails on // operator

Bug #584657 reported by Mike.lifeguard
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
GtkSourceView
Invalid
Critical
gtksourceview2 (Ubuntu)
Triaged
Low
Unassigned

Bug Description

Binary package hint: gedit

A line like the following messes up the rest of the script because gedit thinks it is the beginning of a regex instead of the // operator:

my $var = shift // 1;

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: gedit 2.30.2-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.32-22.33-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic i686
Architecture: i386
CheckboxSubmission: 8b15f4fca5292e90a3327d5e528e925e
CheckboxSystem: 988b7c9be54a1e2525cae7d97805a134
Date: Sun May 23 14:34:05 2010
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
ProcEnviron:
 PATH=(custom, user)
 LANG=en_CA.utf8
 SHELL=/bin/bash
SourcePackage: gedit

Revision history for this message
Mike.lifeguard (mikelifeguard) wrote :
Changed in gedit (Ubuntu):
importance: Undecided → Low
Revision history for this message
Pedro Villavicencio (pedro) wrote :

That's a gtksourceview issue, can confirm the issue, vim shows the code in the right way, will send it upstream.

affects: gedit (Ubuntu) → gtksourceview2 (Ubuntu)
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thank you for your bug report. This bug has been reported to the developers of the software. You can track it and make comments at:
 https://bugzilla.gnome.org/show_bug.cgi?id=619550

summary: - Perl syntax highlighting fails on // operator (introduced in 5.10)
+ Perl syntax highlighting fails on // operator
Changed in gtksourceview2 (Ubuntu):
status: New → Triaged
Changed in gtksourceview:
status: Unknown → New
Changed in gtksourceview:
importance: Unknown → Medium
Changed in gtksourceview:
status: New → Invalid
Mike Doherty (doherty)
Changed in gtksourceview:
importance: Medium → Unknown
status: Invalid → Unknown
Changed in gtksourceview:
importance: Unknown → Wishlist
status: Unknown → New
Changed in gtksourceview:
importance: Wishlist → Critical
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.