strings break php syntax highlight

Bug #706024 reported by Teo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gtksourceview2 (Ubuntu)
Expired
Low
Unassigned

Bug Description

Binary package hint: gedit

Try writing the following (perfectly valid) example php code in gedit with "highlight mode" set to "php".

Expected: highlight should be correct, as the code is ok. Code between <?php and ?> should be highlighted as php, and inside it, code between quotes should be shown as a string. Code outside php tags should be highlighted as html.

Observed: the opening quotes of the string are wrongly interpreted as closing quotes of the html attribute (ignoring the fact that they are inside the <?php ... ?> block), and starting from there code is highlighted as HTML.

Here's the example code:

<html>
<body>

<a href="<?php echo "this is a string"; ?>">link</a>

</body>
</html>

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: gedit 2.30.3-0ubuntu0.1
ProcVersionSignature: Ubuntu 2.6.32-27.49-generic 2.6.32.26+drm33.12
Uname: Linux 2.6.32-27-generic i686
NonfreeKernelModules: nvidia
Architecture: i386
Date: Fri Jan 21 19:45:41 2011
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: gedit

Revision history for this message
Teo (teo1978) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report. The issue is an upstream one and it would be nice if somebody having it could send the bug the to the people writting the software (https://wiki.ubuntu.com/Bugs/Upstream/GNOME)

affects: gedit (Ubuntu) → gtksourceview2 (Ubuntu)
Changed in gtksourceview2 (Ubuntu):
importance: Undecided → Low
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. The issue that you reported is one that should be reproducible with the live environment of the Desktop CD of the development release - Oneiric Ocelot. It would help us greatly if you could test with it so we can work on getting it fixed in the next release of Ubuntu. You can find out more about the development release at http://www.ubuntu.com/testing/ . Thanks again and we appreciate your help.

Changed in gtksourceview2 (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for gtksourceview2 (Ubuntu) because there has been no activity for 60 days.]

Changed in gtksourceview2 (Ubuntu):
status: Incomplete → Expired
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.