strings break php syntax highlight
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
ProcVersionSign
Uname: Linux 2.6.32-27-generic i686
NonfreeKernelMo
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
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)