← Back to team overview

desktop-packages team mailing list archive

[Bug 706024] Re: strings break php syntax highlight

 

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

** Changed in: gtksourceview2 (Ubuntu)
       Status: Incomplete => Expired

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gtksourceview2 in Ubuntu.
https://bugs.launchpad.net/bugs/706024

Title:
  strings break php syntax highlight

Status in “gtksourceview2” package in Ubuntu:
  Expired

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gtksourceview2/+bug/706024/+subscriptions