php + html comment = wrong highlight

Bug #844952 reported by Teo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GtkSourceView
New
Undecided
Unassigned
gtksourceview3 (Ubuntu)
New
Low
Unassigned

Bug Description

Nesting of php tags inside html comments is treated incorrectly.
Code within <?pho and ?> will get parsed by php even if it is inside a <!-- --> html comment, so it should be highlighted with php syntax highlight in gedit. However it isn't. It is shown in blue as if it was part of the html comment.

Example:

<html>
<!-- comment
<?php
// This code will be parsed and executed by php, so it should be highlighted in php syntax
echo "This will be output within the html comment";
?>
-->
</html>

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: gedit 2.30.3-1ubuntu1
ProcVersionSignature: Ubuntu 2.6.35-30.56-generic 2.6.35.13
Uname: Linux 2.6.35-30-generic i686
NonfreeKernelModules: nvidia
Architecture: i386
Date: Thu Sep 8 18:01:13 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 taking the time to report this bug and helping to make Ubuntu better. The issue you are reporting is an upstream one and it would be nice if somebody having it could send the bug to the developers of the software by following the instructions at https://wiki.ubuntu.com/Bugs/Upstream/GNOME. If you have done so, please tell us the number of the upstream bug (or the link), so we can add a bugwatch that will inform us about its status. Thanks in advance.

affects: gedit (Ubuntu) → gtksourceview3 (Ubuntu)
Changed in gtksourceview3 (Ubuntu):
importance: Undecided → Low
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.